diff --git a/py/basicifstatements/challenge1.py b/py/basicifstatements/challenge1.py deleted file mode 100644 index 3b8cc42..0000000 --- a/py/basicifstatements/challenge1.py +++ /dev/null @@ -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") \ No newline at end of file diff --git a/py/ifelsestatements/challenge3.py b/py/ifelsestatements/challenge3.py deleted file mode 100644 index 91613ff..0000000 --- a/py/ifelsestatements/challenge3.py +++ /dev/null @@ -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")