DAY ONE PYTHON
MAY,21,2026...THURSDAY
TODAY CLASS
and True AND False
1) if statement should end with else statement
2) if statement should have elif statement
3) elif statement should have else statement
4) if statement should have (Operator) symbols like > < >= <= == !=
*Sir ask this question AND Sir Was Told answer this question True OR False
*I Have Answer TRUE,FALSE,TRUE,TRUE
<NEXT
SIR WAS CORRECTION THEN TILL (FALSE,FALSE,FALSE,FALSE)
then iam thinking Yes was till correct only
PROGRAM 1:
total1 = 345
total2 = 425
if False:
print(total1)
else:
print(total2)
PROGRAM 2:
mark1 = 90
mark2 = 92
mark3 = 85
if mark1 > mark2 and mark1 > mark3:
print("mark1 is greater")
elif mark2 > mark3 and mark2 > mark1:
print("mark2 is greater")
else:
print("mark3 is greater")
Top comments (0)