"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. (PYTHON)

"Simon Says" Is A Memory Game Where "Simon" Outputs A Sequence Of 10 Characters (R, G, B, Y) And The

Answers

Answer 1

Answer:

Explanation:

See attached for assistance

"Simon Says" Is A Memory Game Where "Simon" Outputs A Sequence Of 10 Characters (R, G, B, Y) And The
Answer 2

The program illustrates the use of loops.

Loops are used to perform operations that need to be repeated in a certain number of times

In this case, the characters of simon_pattern will be compared to the characters of user_pattern.

The missing code segment is as follows:

for i in range(10):

   if(user_pattern[i] == simon_pattern[i]):

       user_score+=1

   else:

       break;

#This statement iterates through the characters of user_pattern and simon_pattern

for i in range(10):

#This compares the corresponding characters

   if(user_pattern[i] == simon_pattern[i]):

#If the characters match, the user_score is incremented by 1

       user_score+=1

#If otherwise,

   else:

#The loop is forcefully closed

       break;

Read more about loops at:

https://brainly.com/question/13486964


Related Questions

. In an airport, a system consisting of sensors, bar code readers and remote controls is MOST LIKELY used for

aircraft boarding
baggage handling
border control.
passenger check-in.​

Answers

Answer:

baggage handling

.......

Answer:

baggage handling

Explanation:

Which of the following would be considered a subtopic for a mind map?
ecosystem

number of trees

plants

number of shrubs

Answers

Answer:

C) Plants

Explanation:

"Ecosystem" is the topic. Then "Plants" is the sub topic. Next the "Number of trees" and "Number of shrubs" branch out from there (Pun intended (; ).

The name for entering numbers into a spreadsheet is D___ E____. Write out the full name in ALL CAPITALS!

Answers

Answer:

DATE

Explanation:


What explains the discrepancy between the number of bytes you can
actually store on a storage device and what the advertisers say you can
store on the that device?
Anyone knows this ? Please help

Answers

Answer:

This is because, the advertisers report the storage space in decimal while the computer reads the storage space in binary.

Explanation:

The advertisers report the storage space in decimal or base 10 because humans count in decimal, whereas the computer reports the storage space in binary or base 2.

Since the computer storage is in bytes and 8 bits equal 1 byte, It is easier to write a storage space of 1 kB as 1000 B but it is actually supposed to be 1024 B(2¹⁰). So, there is a discrepancy of 1024 B - 1000 B = 24 B.

As  we go higher, the discrepancy increases. For example, 1 MB is advertised as 1000 kB = 1000000 B but is actually supposed to be 1024 kB = 1024 × 1024 B = 1048576 B. So, there is a discrepancy of 1048576 B - 1000000 B = 48576 B.

So, the actual number of bytes on the storage device is actually less than that reported due to the different number systems in which they are reported in. This discrepancy is less in memory cards or flash drives though in which the stated value of storage capacity might be the actual storage size.

Note that the base 10 or decimal system was chosen by advertiser since this is what consumers understand.

Multiple Choice
In an online learning environment, where does the learning take place?
A. a bricks-and-mortar school
B. the Internet
C. a playground
D. a park

Answers

Answer:

B the internet

Explanation:

Online learning = internet

Prompt
What is a row?

Answers

Answer:

A row is a horizontal group of values within a table. Or a a number of people or things in a more or less straight line.

I don't know if you talking about the tech row .

three advantages to the company of using robots rather than human to manufacture company​

Answers

Answer:

Robots are able to carry heavy things such as a car.

They also do not need breaks like humans do.

They can be quicker at the job and a humans dont need to involve themselves and have a higher risk of getting hurt.

Which of these statements would be an incorrect way to call the following function?

def circle_area(radius):
return 3.14 * radius * radius

A. print(circle_area(10))

B. circle_area(input(“Enter a circle radius.”))

C. radius = 5
circle_area(radius)

D. input(“Enter a circle radius.”)(circle_area())

Answers

Answer: D

Explanation:

circle_area requires a radius to be passed in. When the function is called there is nothing being passed in so you would get an error. Also the user input isn't being saved to any variable so you would probably get an error at that line first.

The incorrect option is A. Because the radius of the circle is not given.

What is programming?

Programming is the set of rules and algorithms by which the desired output can be obtained.

The set of rules is given below.

Def circle_area(radius):

return 3.14 * radius * radius

To get the circle's area we need to give the radius of the circle.

Then the incorrect option is A. Because the radius of the circle is not given.

More about the programming link is given below.

https://brainly.com/question/11023419

#SPJ2

Individuals connect to the Internet through an __ (1) __ allowing them access to the system. The rules on the Internet for how messages are addressed and passed on are called __ (2) __ .

Answers

Answer:

1. Internet service provider (ISP)

2. Protocols.

Explanation:

Individuals connect to the Internet through an Internet service provider (ISP) allowing them access to the system. An ISP is a telecommunication company that provides internet services for other internet providers i.e they act as a backbone.

The rules on the Internet for how messages are addressed and passed on are called protocols.

A protocol can be defined as a standard set of rules established by the regulatory agencies to determine how data are transmitted from one network device to another.

Generally, the standard Internet communications protocols which allow digital computers to transfer (prepare and forward) data over long distances is the TCP/IP suite.

difference between electrical and electronic devices

Answers

Answer:

The differences between electrical and electronic devices is that electrical uses as energy for necessary purposes, while electronic devices are being manipulated by the electrons that are inside of the device's battery :3

Explanation:

:3

the difference between electrical and electronic devices is that the electrical devices convert the electrical energy into the other form of energy like heat. light etc where as electronic devices control the flow of electrons for performing the particular task

Which of the following statements about meta tags is TRUE?
A.Meta tags are a way of filtering items online so that you only see the items that connect to your interests.
B.Meta tags are large amounts of data that websites collect from their users. C.Meta tags are snippets of text that describe the content of a page or object. D.All of the above are true​

Answers

Answer:

I guess c no. is the answer

Computers help eliminate the repetitiveness of manual task how can this benefit you in your overall career?

Answers

Answer:

Explanation:

When I went to high school, our next door neighbor had a pet dinosaur. We used to have to do math problems that were incredibly long and tedious. Things like the gas laws. They involve 5 numbers with 2 decimal places and we were asked to find the 6th number.

Eventually we were taught to use log tables but by then we were too numb to care.

Computers however take repetitiveness in their stride. They don't gag at how many times they have to repeat an operation. They don't mind if they do it a thousand times or a million or 100 million times. Some algorithms like the Monte Carlo method depend on trying an operation a million times. Humans would go crazy if they had to do that. Computers can do simple algorithms a million times while the mouse is on the go command.

If you pick a job like a tax consultant, you will be glad not to do any more than knowing where the numbers that make up your data go.

Same with banks and insurance jobs. I'll bet there are many jobs in medicine that require repetitive calculations.

what is the period of a wave that has a frequency of 30hz
A. 0.03 s
B. 3 s
C. 30 s
D. 0.3 s

Answers

The answer is
A 0.03s hope this helps

0.03 s is the period of a wave that has a frequency of 30hz. Thus, option A is correct.

How Period of wave and its frequency are closely related?

Period of wave and its frequency are closely related. Period is the inverse of frequency. The period of a wave is the time taken for a number of waves to pass through a particular point. The frequency of a wave is the number of waves that passes through a point at a particular time.

An electromagnetic spectrum can be defined as a range of frequencies and wavelengths into which an electromagnetic wave is distributed into.In Science, the electromagnetic spectrum is composed of the following types of energy from highest to lowest frequency and shortest to longest wavelength and these are Gamma rays, X-rays and electromagnetic wave.

An ocean wave is generally classified as a mechanical wave while both visible light and x-rays are electromagnetic waves. A wave can be defined as a disturbance in a medium that progressively transfers (transports) energy from a source to another location, especially without the transportation of mass (matter).

Therefore, 0.03 s is the period of a wave that has a frequency of 30hz. Thus, option A is correct.

Learn more about frequency on:

https://brainly.com/question/5102661

#SPJ2

HELP ME PLZ IM AM STUCK ON THIS I NEED AWNSERS

Answers

Answer:

What are your cards?? I may be able to help you if you put your cards. :)

Explanation:

PLZ PLZ PLZ PLZ HELP will mark brainlist What component contains the ROM (Read Only Memory)?

CPU

RAM

Motherboard

Storage

Answers

motherboard hope it helps :))

Read the following scenario:

Richard is practicing his math facts for a test he will be taking tomorrow. At a bricks-and-mortar school, Richard takes the math fact test and waits a day for his teacher to grade the test and return it to him. At his online school, Richard takes the math fact test and knows immediately how he did because of the computer-generated response.

What is the difference between the bricks-and-mortar school and the online school?
A. The tests are different.
B. The test is timed.
C. The test feedback is quicker at the online school than at the bricks-and-mortar school.
D. Both of the tests are about math facts.

Answers

c - the test feedback is quicker at the online school than at the bricks-and-mortar school :)

Answer: C

Explanation:

HELP

AUDIO AND VIDEO

Which camera setting does this statement describe? The __________ of the camera determines the brightness or darkness of an image​

Answers

Answer:

Aperture

Explanation:

The Aperture of the camera determines the brightness or darkness of an image

Complete the sentence with the correct response.

A marketing technique that uses social media sites to create a buzz about a product and gain word-of-mouth advertising
is known as ____ marketing.

Answers

Word of mouth marketing

Why is it important to include inserts in our scenes?

Answers

Answer:

An insert shot is any shot that's sole purpose is to focus the viewer's attention to a specific detail within a scene. These shots are often placed from the point of view of a character, suggesting that we see what the character sees during a moment of concentration.

Explanation: Hope this helped! :)

An insert shot is any shot that's sole purpose is to focus the viewer's attention to a specific detail within a scene. These shots are often placed from the point of view of a character, suggesting that we see what the character sees during a moment of concentration.

I need help ASAP please and thank you!

Answers

Answer:

the Answer is C hope its right

The answer is for the problem is C

Choose correct answers:15) Choose the correct words to finish this sentence: When choosing your insurance plan, you typically have the option of paying a ________ premium in exchange for ________ coverage or a ________ premium with less coverage.

Answers

Answer:

paying an insurance premium in exchange for accidental coverage or a minimum premium with less coverage.

Explanation:

Insurance is an arrangement in which a person transfers his risk to a company. The insurance providers assess the persons nature of risk and the probability for the accidents then they determine premium price based on the person risk. The insurance can be for health related problems, life insurance or an insurance for a car accidents.

What duration of blank roll should Jon begin with to avoid ripples at the start of the tape?
OA. 5 seconds
OB. 15 seconds
OC. 20 seconds
OD. 30 seconds​

Answers

Answer:

I think 5 seconds because the others just make no since for it lol

Answer:

the answer is C 20 seconds

Explanation:

i researched this question so much that i want to help people get the right answer. hope this helps for everyone else who comes across this Q. stay safe

Given the number of rows and the number of columns, write nested loops to print a rectangle. (PYTHON)

Answers

Answer:

Explanation:

Please see the attached picture for help.

The code segment is given in Python. So, it must be completed in Python.

The missing nested loops are as follows:

for rows in range(num_rows):

   for cols in range(num_cols):

The first nested loop will iterate through the length of the rectangle

for rows in range(num_rows):

The second nested loop will iterate through the width

   for cols in range(num_cols):

So, the complete program is:

num_rows = int(input())

num_cols = int(input())

for rows in range(num_rows):

   for cols in range(num_cols):

       print('*',end=' ')

   print()

See attachment for sample run

Read more about Python programs at:

https://brainly.com/question/22841107

I have this questions i need to make it in a report format pages of atleast 3 pages and maximum of 5 pages​

Answers

First write what is software take one page for that

and each page for all other topics

How do you post pictures as the question? I don't feel like typing it out​

Answers

I think you can just search the question up by taking a picture of it and then putting where it says if the question isnt there and maybe u can erase the question and just take a picture of the question where ur asking and the thing to take a picture of it is on the bottom left

I will give Brainlyest What is true about a "point-to-multipoint" network configuration?
Select one:
a. Data sent by one computer is received only by the target computer
b. Point-to-multipoint computers are always arranged in a Ring pattern
O c. Data sent by one computer is received by all other computers on the network
O d. Point-to-multipont networks require fewer wires

Answers

Answer:

a

Explanation:

Beacause im smart and i trust my self my answer is corect

HELP!' Prompt
In a table, what is a field?

Answers

Answer:

Fields are the components that provide structure for a table. In fact, you can't have a table without fields. ... Fields in a table store the same category of data in the same data type. For example, if you have a NAME field in a table of customers, the entries for this field are all customer names and are stored as text.

Answer:

Fields are the components that provide structure for a table. In fact, you can't have a table without fields. ... Fields in a table store the same category of data in the same data type. For example, if you have a NAME field in a table of customers, the entries for this field are all customer names and are stored as text.

Explanation:

PLEASE HURRY!!!!! Part of a program that does not work correctly
O Loop
O Mouse
O All programs are perfect
O Bug

Answers

Answer:

bug

Explanation:

A bug computer definition is referred to as a failure or a flaw in the software program. A Bug produces an incorrect or undesired result that deviates from the expected result or behavior.

it would be a bug hope you get 100!

Regardless of if you use social media or not, would you rather be conservative rather than outgoing on social media? Why or Why not?


Please help this is due today and I really need help.

Answers

Answer: I imagine conservative is the correct answer.

Explanation: However it's not the answer I agree with. As long as you stay anonymous online, there's no punishment to being outgoing.

13. A 2-sided coin has an equal likelihood of landing on each side. One side is called "heads" and the other is called "tails". The program below simulates randomly
flipping that coin many times,
var heads -
var tails - ;
var rolls - 100;
for(var i=0; i
if(randonlumber(0,1) - )
heads
} else
tails
Which of the following is NOT a possible combination of values of the variables in this program when it finishes running?
O A. tails has a value of O and heads has a value of 100
B. tails has a value of 100 and heads has a value of O
0 C.tails has a value of 20 and heads has a value of 20
O D. tails has a value of 50 and heads has a value of 50

Answers

Answer: tails has a value of 20 and heads has a value of 20

Explanation: Both Values have to add up to 100 for it to work. You cant have a 60% chance of a side that doesn't exist on a coin.

The combination that is not possible is (b)  tails has a value of 20 and heads has a value of 20

The first and the second line of the program initializes heads and tails to 0.

The third line of the program initializes roll to 100

This means that at the end of the program, the combined value of heads and tails variables must add up to 100.

The above highlight is true for options (a), (b) and (d), because

[tex]0 + 100 = 100[/tex]

[tex]100 + 0 = 100[/tex]

[tex]50 + 50 = 100[/tex]

However, this is not true for the third option because

[tex]20 + 20 \ne 100[/tex]

Hence, the combination that is not possible is (c)

Read more about similar programs at:

https://brainly.com/question/18430675

Other Questions
Discuss TWO ways in which some cultural views that exist may affecta relationship negatively. a letter to the Ambassador highlighting hardship faced by Nigerian students and soliciting for assistance Which statement below best applies to the following expression? There are 60 mangoes, They are packed in 7 boxes. How many mangoes are there in each box and how many mangoes are left out? What is hip hop (dance class) what are the provisions in the constitution of nepal regarding women's right and women empowerment please help ! mathhhhh HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Find the height of a parallelogram with base9.44 meters and area 70.8 square meters. Marta, who is only 5 years old, heard her mother use a curse word, and is now repeating that word much to the embarrassment of her parents. It was especially upsetting when she used it in church! By explaining to Marta that the word is not nice and then ignoring her use of the word, her parents are pleased when the word disappears from her vocabulary. Which concept of learning does this most aptly demonstrate?A. learning leads to habitual behaviorsB. learning is only relatively permanentC. learning cause a physiological change in the brainD. learning is a direct result of experiences Pls what is the difference between the mass number and atomic number How is speed related to kinetic energy? YALL HELP ME Give 5 negative effects of vulgar conversations and lewd acts China's "Age of Exploration" ended because Describe the composition of Granite. caroline babysat for two families the nelson and the smiths. use the information below to compare her earings. nelson a = 6.25h, where a represents the amount she earned and h represents the number of hours she babysat. smiths : $39 for 6 hours witch statement is true? A. Caroline earns $6.25 an hour babysitting for the smiths.B. Caroline earns $6.50 an hour babysitting for the nelsons. C. Caroline earns more money per hour from the smiths.D. Caroline earns more money per hour from the nelsons. what is m = -8; (-2, 16) in slope intercept form? :) Hi, can you please check my answers? Pls answer I will mark brainiest!!!Look at the dots around each symbol and the energy levels from the resources aboveBe specific with your responses for each question. Your teaching the reader via answers!Please answer the following questions:Why does Na(sodium) have only one dot?Why do none of these diagrams show more than 8 dots?What relationship do you notice between the dots in these two charts?The number of dots that hydrogen and helium have in their dot diagram is the same as the number of electrons shown for them on the Periodic Table. Why? (Hint: OCTET RULE) Zac and Lynn are each traveling on a trip. So far, Zac has traveled 123.75 miles in 2.25 hours. Lynn leaves half an hour after Zac. So far, she has traveled 105 miles in 1.75 hours. Assume Zac and Lynn travel at constant rates.