Question: Is this correct? voting.py X voting.py 1 LEGAL AGE = 21 age = int (input(Enter your age: )) 3 if age = LEGAL_AGE : 4

Is this correct?

voting.py X voting.py 1 LEGAL AGE = 21 age = int (input("Enter your age: ")) 3 if age = LEGAL_AGE : 4 print ("You are old enough to vote!") 5 print ("Have you registered to vote yet?") else: 7 print ("Sorry, you are too young to vote.") print (f"Please register to vote as soon as you turn { LEGAL AGE}!") PROBLEMS OUTPUT DEBUG CONSOLE TERMINAL PORTS Python Debug Console + ] . . . A X PS C:\\Users\\Administrator \\Desktop\\Lab Resources ^C FLARE -VM 09/17/2025 06:49:16 PS C:\\Users\\Administrator\\Desktop\\Lab Resources FLARE -VM 09/17/2025 00:49:16 PS C:\\Users\\Administrator\\Desktop\\Lab Resources c:; cd 'c:\\Users\\Administrator \\Desktop\\Lab Resources'; 'c: \\Python310 \\python . exe' 'c:\\Users\\Administrator \\. vscode\\extensions\\ms-python . debugpy-2024 . 8.0-win32-x64\\bundled\\libs\\debugpy\\adapter /. ./. . \\debugpy\\launcher ' '55858' '--' 'c:\\Users\\Administrator\\Desktop\\Lab Resources\\voting . py' Enter your age: 21 You are old enough to vote! Have you registered to vote yet? FLARE -VM 09/17/2025 06:49:24 PS C:\\Users\\Administrator\\Desktop\\Lab Resources gt

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!