4.10.1: Simon Says program

4.10.1: Simon Says program

Image transcription text

CHALLENGE ACTIVITY 4.10.1: Simon says. "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 the two strings. For each match, add one point to user_score. Upon a mismatch, end the game. Sample output with inputs: 'RRGBRYYBGY" 'RRGBBRYBGY' User score: 4 1 user_score = 0 2 simon_pattern = input() 3 user_pattern = input() lialia 4 5 Your solution goes here "" 7 print('User scores ' , user_score)

... Show more

Answer & Explanation
Verified Solved by verified expert
Rated Helpful

Donec alique0, consectetur adipiscing elit. Nam lacinia pulvinapulvinar toritur laoreet. Nam risus ante,ora molessupulvinar tortor nec facilsfacilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus acipiscing elipsuamet, consectetur adipur laec facientesque dapm risus ante,

Unlock full access to Course Hero

Explore over 16 million step-by-step answers from our library

Subscribe to view answer
Student reviews
83% (6 ratings)
Thorough explanation
Easy to follow
Clear formatting

"Thank you!"