Computer Science, asked by aaravpk123, 1 day ago

Write a program in Python Input age of the person, if age>=18 then show the message “Valid voter” else show the message “Invalid voter”.​

Answers

Answered by Anonymous
2

The Python program to find whether a person is a valid voter or not has been attached above. Kindly check it!

Attachments:
Answered by purveshKolhe
3

\huge{\red{\overbrace{\underbrace{\mathfrak{\purple{answer::}}}}}}

usin = int(input("Enter your age : "))

if age >= 18:

  print("Valid voter")

else:

  print("Invalid voter")

\huge{\underline{\mathfrak{\blue{Logic-}}}}

  • We took input in a variable named "usin".
  • Then we designed the if...else... framework which worked according to the given conditions.

Hope it helps...

Similar questions