Answer:
for i in range(0,10):
if SimonPattern[i] == UserPattern[i]:
score = score + 1
i = i + 1
else:
break
if i == 9:
score = score + 1
print("Total Score: {}".format(score))
Explanation:
This for loop was made using Python. Full code attached.
- For loop requires a range of numbers to define the end points. For this Simon Says game, we are talking about 10 characters, so that must be the range for the for loop: from 0 to 10.
- Conditional if tests if Simon pattern matches User's one characheter by one and add point for each match.
- Break statement is ready to escape the for loop at first mismatch.
- As we are starting from index 0, if the users matched all the characters correctly, then we need to add 1, otherwise the maximun score would be 9 and it should be 10.
Answer:
please mark me as a brainleast
Explanation:
hahahahhahaahhahahahahahahahahahahahahahahahaahhhahhhahaahahhaahhhahahaah
Answer:
Mechanical Engineering
Chemical Engineering
Civil Engineering
Explanation:
I got it from my old homework And I learn those at school ( Thank You For The Points)
Answer:A. No one has ever beat Nancy.
Explanation:
The dormain of discourse in a simple language is the set of entities upon which our discussions are based when discussing about something.
The dormain of discourse is also known simply as universe, can also be said to be a set of entities o
upon which certain variables of interest in some formal treatment may range.
The dormain of discourse is generally attributed to Augustus De Morgan, it was also extensively used by George Boole in his Laws of Thought.
THE LOGICAL UNDERSTANDING OF THE THE QUESTION IS THAT NO ONE HAS EVER BEAT NANCY.