Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Simon Says is a memory game where Simon outputs a sequence of 10 characters (R,G,B,Y) and the user must repeat the sequence. Create a for
"Simon Says" is a memory game where "Simon" outputs a sequence of 10 characters (R,G,B,Y) and the user must repeat the sequence. Create a for loop that compares each character of the two strings. For each matching character, add one point to user_score. Upon a mismatch, end the loop. Sample output with inputs: 'RRGBRYYBGY' 'RRGBBRYBGY' User score: 4 Code writing challenge activity demo 1 user_score = 2 simon_pattern = input () 3 user_pattern = input() 4 Your solution goes here "'I 5 ''Yore: \{user_score }) 6 7 print(f'User score
Step 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