Using knowledge in phyton it is possible to write code that uses program should print a nice message telling the user if they are eligible to vote.
<h3>Writting in python:</h3>
<em>def is_eligible(age, citizenship, prison):</em>
<em> # Converting the inputs into lower for validation</em>
<em> citizenship = citizenship.lower()</em>
<em> prison = prison.lower()</em>
<em />
<em> # 18+ Canadian and do not live in prison can vote</em>
<em> if(age >= 18 and prison == "yes" and (citizenship == "canada" or citizenship == "Canadian")):</em>
<em> return True</em>
<em> return False</em>
<em />
<em># Implement your I/O here</em>
<em />
<em># getting required inputs from user</em>
<em>citizenship = input("Please Enter your Citizenship: ")</em>
<em>prison = input("Please Enter if you are in prison YES/NO: ")</em>
<em>age = int(input("Please Enter your Age: "))</em>
<em />
<em>is_eligible = is_eligible(age, citizenship, prison)</em>
<em>if is_eligible:</em>
<em> print("Congratulations, You are eligible to Vote!!")</em>
<em>else:</em>
<em> print("Sorry, You can't Vote")</em>
See more about python at brainly.com/question/18502436
#SPJ1