Lecture 11/17/2026
This commit is contained in:
parent
07b9e54bf0
commit
bf3265103a
44 changed files with 1195 additions and 3 deletions
16
lecture20261117/if/if03.py
Normal file
16
lecture20261117/if/if03.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
|
||||
# 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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue