Demo: Complex Conditions | Python for Beginners [24 of 44]

preview_player
Показать описание


#microsoftdeveloper #pythonforbeginners #learntocode
Рекомендации по теме
Комментарии
Автор

it's the first time i enjoyed such series, thank you from Egypt

zamalekson
Автор

#You may like this. Regards from Spain.
gpa = float(input('What was your Grade Point Average? '))
lowest_grade = float(input('What was your lowest grade? '))

if gpa >= .85 and lowest_grade >= .70:
honour_roll = True
else:
honour_roll = False

if honour_roll:
print('You made honour roll.')
else:
print('You did not make honour roll.')

rafaelaprende
Автор

what if you did not meet the honor roll lets say if you got 20 percent for both gpa and grade. how to make it print you didn't make it

sewcooks
Автор

what if the input gpa was 80 instead of 0.8 ?

mirastark
Автор

Isn't it "Honor Roll" not "Honour Roll" ?

Popbillybobjoe
Автор

i am from ukraine, also enjoing guys speaking about python

ogutsalyuk
Автор

if gpa >= .85 and lowest_grade >= .70:
print('nerd')
else:
print('git gud')

vivi_for_real
join shbcf.ru