remove duplicates
This commit is contained in:
parent
288c7e127a
commit
41aa105ca1
2 changed files with 0 additions and 23 deletions
|
@ -1,10 +0,0 @@
|
|||
# Question: Ask the user for their age. If they are 18 or older tell them “You can vote”.
|
||||
|
||||
# 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")
|
|
@ -1,13 +0,0 @@
|
|||
# Ask the user to input two numbers
|
||||
num1 = float(input("Enter the first number: "))
|
||||
num2 = float(input("Enter the second number: "))
|
||||
|
||||
# Calculate the average
|
||||
answer = (num1 + num2) / 2
|
||||
|
||||
# Check if the average is less than 100
|
||||
if answer < 100:
|
||||
print("The average is", answer)
|
||||
|
||||
# Print "Goodbye" at the end
|
||||
print("Goodbye")
|
Loading…
Add table
Reference in a new issue