Question: PYTHON QUESTION 6 Implement the following: 1) Request an integer user input, key, from the console. 2) Use the following logic: print Key Found if
PYTHON
QUESTION 6 Implement the following: 1) Request an integer user input, key, from the console. 2) Use the following logic: print "Key Found" if the variable key is an even number. Otherwise, print "Key Incorrect". 3) Use except to print 'Invalid Input' if the input is invalid data such as letters or symbols. Input text can be any content. Just make sure to precisely match the output format below. Write your code in the ANSWER area provided below (must include comments if using code is not covered in the course). Example output 1 (if the input is apple) Enter your password: apple Invalid Input Example output 2 (if the input is 111) Enter your password: 111 Key Incorrect
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
