In this lesson the answer is else which is not the same for me when I run it in code playground it gives no output | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

In this lesson the answer is else which is not the same for me when I run it in code playground it gives no output

if 1 + 1== 2: if 2 * 2 == 8 print ("if") else print ("else)

13th Jul 2018, 12:58 PM
Joseph Okonkwo
Joseph Okonkwo - avatar
1 Answer
+ 3
that's because there is no else after second if
13th Jul 2018, 1:31 PM
Mert Yazıcı
Mert Yazıcı - avatar