+ 1
When and how can we use if and elif in phython
plzz explain?? https://www.sololearn.com/discuss/1360240/?ref=app
2 Respuestas
+ 3
you can use the if statements whenever you want to wave a choice for one thing or the other for example:
x = 5
if x == 5
print “x is eaqual to 5”
elif x == 7
print “x is eaqual to 7”
+ 2
look at this code I made a while back
https://code.sololearn.com/cFPFjvwDsXPr/?ref=app
the bottom part