16 lines
218 B
Python
16 lines
218 B
Python
|
|
# if..else statement example
|
|
x = 7
|
|
print(f"{x} is equal to 7?")
|
|
if x == 7:
|
|
print("Yes")
|
|
else:
|
|
print("No")
|
|
|
|
# if..else statement example
|
|
x = 5
|
|
print(f"{x} is equal to 7?")
|
|
if x == 7:
|
|
print("Yes")
|
|
else:
|
|
print("No")
|