Question: Ask the user for their name, then say hello, addressing the user by name o Ask the user to type in either rock or paper

 Ask the user for their name, then say hello, addressing theuser by name o Ask the user to type in either "rock"

Ask the user for their name, then say hello, addressing the user by name o Ask the user to type in either "rock" or "paper" or "scissors" Use the lower() method, as seen in Step 2. This will convert all letters in a string into lowercase. Therefore, the user can type in rock, ROCK, ROCK, ROCK, etc. and it will be converted to "rock" Generate a random integer, as seen in Step 2. Import random just like you did import math, and use functions in random. For this assignment, remember you can use the randint(a,b) function to return a random integer x, such that a

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!