Упражнение 023

Инструкции:
Guide

Да сплескаме if-клаузите. Може да ви помогне доста да прочетете :help shift-left-right, където ще намерите >>, << и подобни.

Начално състояние Крайно състояние
if 2 + 2 == 4:
if 2 > 1:
print("Right, that all makes sense")
else:
print("No, no, that's incorrect")
else:
print("Now this is completely unexpected")
if 2 + 2 == 4 and 2 > 1:
print("Right, that all makes sense")
elif 2 <= 1:
print("No, no, that's incorrect")
else:
print("Now this is completely unexpected")