else fuction | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

else fuction

why can't we run if function differently from else function cause they kind of make the statement more complex?

18th Jun 2018, 12:23 PM
WISDOM JOHNSON
WISDOM JOHNSON - avatar
1 Answer
+ 1
can you be more specific we can do this: if 1+1==2: print (true) else: print (false) or we can just leave it as if 1+1==2: print (true)
18th Jun 2018, 1:21 PM
Sahil Danayak
Sahil Danayak - avatar