"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 367036.2214230.qx3zqy7 1 user_score = 0 2 simon_pattern = input() 3 user_pattern = input() 4 5 ' Your solution goes here '' 6 7 print('User score:', user_score)
"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 367036.2214230.qx3zqy7 1 user_score = 0 2 simon_pattern = input() 3 user_pattern = input() 4 5 ' Your solution goes here '' 6 7 print('User score:', user_score)
Chapter5: Looping
Section: Chapter Questions
Problem 6RQ
Related questions
Question
python plz explain
!["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
367036.2214230.qx3zqy7
1 user score = 0
2 simon_pattern = input()
3 user_pattern
input()
4
Your solution goes here ''"
6
7 print('User score:', user_score)](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F47481da9-a2db-432a-a46b-02fbff2ba76b%2Faf3ba469-9d3a-426d-a57d-933870f3d670%2Fufv92aa_processed.jpeg&w=3840&q=75)
Transcribed Image Text:"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
367036.2214230.qx3zqy7
1 user score = 0
2 simon_pattern = input()
3 user_pattern
input()
4
Your solution goes here ''"
6
7 print('User score:', user_score)
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,