Answered step by step
Verified Expert Solution
Question
1 Approved Answer
t This is for python coding. Plz use all the requirements You must: Accept both upper- and lower-case input from the user, and must ignore
t This is for python coding. Plz use all the requirements
You must: Accept both upper- and lower-case input from the user, and must ignore any blank space given on either side of the user input (think robustness). You may assume the user will always give one of the four options: rock, paper, scissors, or dynamite Let the user play exactly 5 rounds of the game. Use a for loop with the range function. Use the random.choice function from the random module. Use the in keyword at least once, outside of the "for i in range... statement. I.e., the "in" in "for i in range." does not fulfill this requirement. Use a nested conditional (if/elif/else) at least onceStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started