subject
SAT, 08.02.2022 14:40 chloejaylevesque

"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.

ansver
Answers: 3

Other questions on the subject: SAT

image
SAT, 24.06.2019 08:30, mochoa4
Why should children should be allowed to vote at elections? explain
Answers: 2
image
SAT, 24.06.2019 18:00, cxbelle
Did the universe cool off or get hotter as it expanded after the 'big bang"?
Answers: 2
image
SAT, 26.06.2019 23:00, lil3114
In 1919, the temperance movement finally succeeded. they secured ratification of a constitutional amendment (the that banned alcoholic beverages. prohibition began with the 1920 passage of the which enforced the amendment.
Answers: 1
image
SAT, 27.06.2019 08:30, shollydot1379
In 1999, the u. s. announced trade sanctions worth $116.8 million, targeting goods from france, germany, italy and denmark. the sanctions were in retaliation for a ban on u. s. hormone-treated beef by which organization?
Answers: 1
You know the right answer?
"simon says" is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the...

Questions in other subjects: