[ edit ]

   1 def judge_high_and_low( x, correct_number ):
   2     if x == correct_number:
   3         return( "正解です" )
   4     elif x > correct_number:
   5         return( "大きすぎます" )
   6     else:
   7         return( "小さすぎます" )

   1 def judge_high_and_low( x, correct_number ):
   2     return( int( x - correct_number ))

SoftEng: Python/Prog/Practice/Extended/02/EP_005a/Digest (last edited 2019-10-16 14:42:15 by TadashiIijima)