0
Why does this work?
On the first question of the else statements section in the Python3 lesson, thereās a question that requires you to run an operation and say the output. However, the output of what Iām using (repl.it) and the correct answer are entirely different. Repl doesnāt give an output, but SoloLearn says it should say āelseā. It would be greatly appreciated if someone could explain whatās happening.
1 Answer
+ 5
Splatonika I tried it on repl.it and the output was else. Are you sure you copied the code correctly? I used:
if 1 + 1 == 2:
if 2 * 2 == 8:
print("if")
else:
print("else")



