Rewrite the following using ternary operator a) if (age>=18) System.out.println(“Eligible to vote”) else System.out.println(“not Eligible to vote”)
Answers
Answered by
4
Answer:
age = int(input("Enter your age: "))
if (age>=18):
print("Congrats! You are eligible to vote!")
else:
print("Sorry! You are not eligible to vote")
So friend, this was your Python program answer...Pls mark as BRAINLIEST if my efforts were helpful to you...
Similar questions
Social Sciences,
1 month ago
Science,
1 month ago
Math,
3 months ago
Math,
9 months ago
Math,
9 months ago