passes = 0 # number of passesfailures = 0 # number of failuresstudentCounter = 1 # student counterwhile studentCounter <= 10: result = raw_input( "Enter result (1=pass,2=fail): " ) result = int( result ) # one exam result if result == 1: passes = passes + 1 else: failures = failures + 1 studentCounter = studentCounter + 1print "Passed", passesprint "Failed", failuresif passes > 8: print "Raise tuition"
Name (required)
email (will not be published) (required)
Website