Question : conditional or
Answered by : splendid-sloth-3s2qldz8pb4g
||
Source : | Last Update : Tue, 28 Dec 21
Question : Conditional Statement
Answered by : repulsive-rabbit-40tbncdqpirt
if age <=18: state="Kid"
elif age > 65: state="Retired"
else: state="Active"
if x: ⇔ if bool(x)==True
if not x: ⇔ if bool(x)==False
Source : https://course.cse.ust.hk/comp2211/cheatsheet/front.html | Last Update : Thu, 29 Dec 22