Question: PYTHON This assignment requires you to randomly choose a number, accept input from the user, and print whether or not the user is correct. Randomly
PYTHON
This assignment requires you to randomly choose a number, accept input from the user, and print whether or not the user is correct.
Randomly choose a (whole) number between 1 and 256 without showing it to the user.
Prompt the user for the word "odd" or "even".
Print an appropriate message depending on whether they guessed correctly.
If they don't enter "odd" or "even", print an error message.

This assignment requires you to randomly choose a number, accept input from the user, and print whether or not the user is correct. - Randomly choose a (whole) number between 1 and 256 without showing it to the user. - Prompt the user for the word "odd" or "even". - Print an appropriate message depending on whether they guessed correctly. - If they don't enter "odd" or "even", print an error message. Submit your file as oddeven.py. Sample Run 1 I'm thinking of a number. Is it odd or even? even My number was 73 . Sorry! Sample Run 2 I'm thinking of a number. Is it odd or even? odd My number was 53 . Well done
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
