remove duplicates

This commit is contained in:
Eduard Prigoana 2025-03-15 11:13:06 +02:00
parent 288c7e127a
commit 41aa105ca1
2 changed files with 0 additions and 23 deletions

View file

@ -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")

View file

@ -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")