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.

PYTHON This assignment requires you to randomly choose a number, accept input

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

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 Databases Questions!