badage = int("17")
goodage = int("18")
print("Check if you are eligible to vote in the United States")
users_age = int(input("How old are you?:"))
if users_age == badage :
print("You are ineligible to vote in the United States")
if users_age == goodage :
print("You are eligible to vote in the United States")
我想知道如何让18岁以下和18岁以上的每个数字都和坏的和好的一样
请尝试以下代码:
您可以使用
<
和>
运算符:相关问题 更多 >
编程相关推荐