+ 1

python question

grade = 88 if(grade >= 70 and grade <= 100): print("Passed!") /|\ | | what is difference between both code upper one's get executed. but bottom don't get executed. | | | \/ grade = 88 if(grade >= 70 and grade <= 100): print("Passed!")

9th Nov 2020, 5:36 AM
Abhishek Topno
Abhishek Topno - avatar
2 Answers
+ 5
Last one has indentation error. Python has importance of indent 😊
9th Nov 2020, 5:39 AM
ツSampriya😘ツ
ツSampriya😘ツ - avatar
+ 2
Indentation error You should learn Python carefully with practically.
9th Nov 2020, 5:41 AM
SùñtÎsh
SùñtÎsh - avatar