We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d5074d commit 2a72d98Copy full SHA for 2a72d98
voting.py
@@ -0,0 +1,8 @@
1
+# Prompt the user to enter their age
2
+age = int(input("Enter your age: "))
3
+
4
+# Check for voting eligibility using an if-else statement
5
+if age >= 18:
6
+ print("You are eligible to vote.")
7
+else:
8
+ print("You are not eligible to vote.")
0 commit comments