mercredi 13 mai 2020

if else () is not working in my python program [closed]

gpa = float(input('whats your Grade point average'))
lowest_grade = float(input('whats your Lowest Grade'))
if gpa >= .85 and lowest_grade >= .70:
    honour_roll = True 
else :
    #gpa<.85 and lowest_grade<.70:
    honour_roll = Flase
if honour_roll:
   print('you made honour roll')
else :
    honour_roll:
    print ('sorry') 

(second else function is not working ) am a beginner

Aucun commentaire:

Enregistrer un commentaire