Question: I need help writing a PYTHON function that... 1. accepts no arguments 2. returns an integer that represents the choice between a 1 or 2

I need help writing a PYTHON function that...

1. accepts no arguments

2. returns an integer that represents the choice between a 1 or 2 player game

(I have written the pseudo code)

# Prompt the user to choose between a 1 or 2 player game # If the value entered is invalid, continue to prompt the user to answer 1 or 2 # Display a message confirming their choice of players # Prompt the user to press the ENTER key to continue # Return either 1 or 2 based on the user's choice

(again this needs to be a Python code)

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!