+ 1
Can someone properly explain what elif means?
I know that it means else if but what does it do??
5 Respuestas
+ 6
if x:
code executed only if x is true
elif y:
code executed only if x is false but y is true
else:
code executed only if x and y are both false
+ 7
// "elif" means "else if" and he is used to create a other condition if it is true.
For example :
if (condition):
# Execute this code if this condition is true
elif (condition):
# Execute this code if this condition is true
else:
# Execute this code if this condition is false
+ 2
Just a Short Version of Else if
+ 1
nobody plz read my full comment😉😂😀
0
Russ thanks this helped alot russ