a = 4
b = 5
print a, " > ", b, " is ", (a > b)
print a, " >= ", b, " is ", (a >= b)
print a, " == ", b, " is ", (a == b)
print a, " <= ", b, " is ", (a <= b)
print a, " < ", b, " is ", (a < b)
print "Enter number of preregistered students: ",
total = int(raw_input())
print "Enter number of students adding the course: ",
added = int(raw_input())
total = total + added
print "Total number of students: ", total
print "Enter a whole number: ",
num = int(raw_input())
if (num % 2 == 0):
print "The number is even"
print "Enter a whole number: ",
num = int(raw_input())
if (num % 2 == 0):
print "The number is even"
else:
print "The number is odd"
print "Enter a whole number: ",
num = int(raw_input())
print "The number is", ("even" if num %2 == 0 else "odd")
print "Enter your test score: ",
testScore = int(raw_input())
if (testScore >= 90 ):
print "Your grade is an A"
elif (testScore >= 80 ):
print "Your grade is a B"
elif (testScore >= 70 ):
print "Your grade is a C"
elif (testScore >= 60 ):
print "Your grade is a D"
else:
print "Your grade is an F"
print "Enter your grade: ",
grade = raw_input()
if grade == 'A':
print "Your average must be between 90 - 100"
elif grade == 'B':
print "Your average must be between 80 - 89"
elif grade == 'C':
print "Your average must be between 70 - 79"
elif grade == 'D':
print "Your average must be between 60 - 69"
else:
print "Your average must be below 60"
print "Enter your grade: ",
grade = raw_input()
if grade == 'A' or grade == 'a':
print "Your average must be between 90 - 100"
elif grade == 'B' or grade == 'b':
print "Your average must be between 80 - 89"
elif grade == 'C' or grade == 'c':
print "Your average must be between 70 - 79"
elif grade == 'D' or grade == 'd':
print "Your average must be between 60 - 69"
else:
print "Your average must be below 60"
print "Choose your car"
print "S for Standard"
print "L for Leather Seats"
print "D for Leather Seats + Chrome Wheels"
choice = raw_input()
print "Extra features purchased"
if choice == 'D':
print "Chrome wheels\n"
elif choice == 'L':
print "Leather seats"
else:
print "None selected"