Why doesn't this command work? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why doesn't this command work?

else setup==("a"):

20th Jan 2017, 3:19 PM
Connor
3 Answers
+ 3
use elif
20th Jan 2017, 3:42 PM
Elite
Elite - avatar
0
Use elif, it allows you to put conditions like in if.
20th Jan 2017, 4:01 PM
Ricardo Bene
Ricardo Bene - avatar
0
Else is used when if is false. That is all it does. Use elif to test for other possibilities.
13th Feb 2017, 5:55 AM
Caleb Horton
Caleb Horton - avatar