Exercise: if statement - satisfy condition
The code will assign the variable num a new value of 1, but it will only execute if the condition is met. Modify the condition so that the code inside the block executes, and the
print()
function logs True
.num = 0
# change condition here...
if 1 > 2:
num = 1
print(num == 1)
# expected output: True
Python
Setting up Python environment...
Output