-5
#이 파이썬 코드를 실행하는 동안 구문 오류가 표시됩니다. 이유는 무엇인지 알려주실 수 있습니다.아래의 파이썬 코드에서 "citizen"변수를 강조 표시하는 구문 오류가 무엇입니까?
age = int(input("Enter Your Age")
citizen = input("Belongs to India ?, true or false")
if age >= 18 and citizen == "true":
print("You Belongs To India and Eligible For Voting")
elif age >= 18 and citizen == "false":
print("Though You were 18 and Plus but not Indian")
elif age < 18 and citizen == "true":
print(" Though You were Indian you don't have 18 and Plus")
elif age < 18 and citizen == "false":
print("You are not Indian and you don't have 18 and Plus")
else:
print("All th credintials were entered doesn't match the criteria")
매우 첫 번째 줄이없는 –
당신의 괄호를 닫기')' – Shadow