first hw batch 15.3.25 at 11:09
This commit is contained in:
commit
288c7e127a
10 changed files with 73 additions and 0 deletions
8
py/BasicIfStatements/challenge1.py
Normal file
8
py/BasicIfStatements/challenge1.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Ask the user for their age
|
||||
age = int(input("Enter your age: "))
|
||||
|
||||
# Check if the user is 18 or older
|
||||
if age >= 18:
|
||||
print("You can vote")
|
||||
else:
|
||||
print("You cannot vote yet")
|
Loading…
Add table
Add a link
Reference in a new issue