1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Marta_Voda [28]
3 years ago
5

Lyrics = ["I wanna be your endgame", "I wanna be your first string",

Computers and Technology
1 answer:
ASHA 777 [7]3 years ago
8 0

Answer:

I am writing the Python program:

lyrics = ["I wanna be your endgame", "I wanna be your first string",

     "I wanna be your A-Team", "I wanna be your endgame, endgame"]

lines_of_sanity = 6

counter = 0

while counter <= lines_of_sanity+1:

 for line in lyrics:

   print(line)

   counter = counter + 1

print("MAKE IT STOP")

                                                                                                       

Explanation:

  • The lyrics is a list which has the following lines of song.

I wanna be your endgame

I wanna be your first string

I wanna be your A-Team

I wanna be your endgame, endgame

  • The value of lines_of_sanity is 6.
  • counter variable is initialized to 0.
  • The while loop starts which keeps executing until the value of counter becomes greater than 6 which is the value of lines_of_sanity
  • The for loop inside the while loop moves through each line of lyrics list and prints that line. The counter variable increments to 1 at each iteration.
  • Lets see what the while and for loops print at each iteration:

1st iteration: counter = 0, following line is displayed:

  • I wanna be your endgame
  • Value of counter increments by 1.
  • counter = 1

2nd iteration: counter = 1, following line is displayed:

  • I wanna be your first string
  • Value of counter increments by 1.
  • counter = 2

3rd iteration: counter = 2, following line is displayed:

  • I wanna be your A-Team
  • Value of counter increments by 1.
  • counter = 3

4th iteration: counter = 3, following line is displayed:

  • I wanna be your endgame, endgame
  • Value of counter increments by 1.
  • counter = 4

5th iteration: counter = 4, following line is displayed:

  • I wanna be your endgame
  • Value of counter increments by 1.
  • counter = 5

6th iteration: counter = 5, following line is displayed:

  • I wanna be your first string
  • Value of counter increments by 1.
  • counter = 6

7th iteration: counter = 6, following line is displayed:

  • I wanna be your A-Team
  • Value of counter increments by 1.
  • counter = 7
  • The program should keep going to finish out the current verse. So following line is displayed:
  • I wanna be your endgame, endgame
  • The loop breaks as the value of counter = 7 is greater than lines_of_sanity i.e. 6
  • So at last the print("MAKE IT STOP") statement is execute which displays the following line:
  • MAKE IT STOP
  • The program along with the output is attached.

You might be interested in
Information to develop a project network is collected from the.
Kryger [21]

Information to develop a project network is collected from the work breakdown structure

<h3>Work breakdown structure </h3>

Work breakdown structure (WBS)  is a structure showing the steps needed to be taken so as to complete a project.

WBS is presented in visual format and it is usually arranged based on hierarchy.

Information to develop a project network is collected from the work breakdown structure

Find out more on Work breakdown structure at: brainly.com/question/6197566

7 0
2 years ago
The repeated use of electronic communications, such as chat rooms and email, to seek out, harass, or frighten someone is called
pickupchik [31]

Answer:

CyberStalking

Explanation:

Stalking over the internet carried out . it target individuals or organisation to stalk and harass

5 0
3 years ago
Help ASAP
Gelneren [198K]

Answer:

By supplying a variety of charts and graphs to present the information in best way.

By tracking and analyzing the data

By conveying large amount of numerical data in more understandable format.

Explanation:

You need to know the limitations of Excel software. You will find that it does not support more than 3 variables while analyzing. However, if you use analytic software like Tableau and Microsoft Power BI then you can use a lot number of variables. And this is done through graphs and charts, and the other variables apart from x, y, z are the colors, shades. etc. Even color alone can add a good number of variables, and hence you can understand. Thus, you will be able to query better. Queries become better if you have more variables. And charts and graphs always present the information in the best way/ Also you can track and analyze the data. And through it conveying a large amount of numerical data in a more understandable format is made possible, and this is definitely quite helpful. Hence, all of the options mentioned above are helpful. But they do not do complex calculations and complex queries in fact.

4 0
2 years ago
Read 2 more answers
how can you create fades with the smart tool? How can you specify the types of fade curves that are used with the smart tool?
ra1l [238]

Answer:

The correct answer to the following question is:

To create fades you can click and then drag the end of the clip with a smart tool.

Fade Dialog Box is the fade curve.  

Explanation:

Smart Tool is an application which also provide their users with the features of the quick access menu by which they can easily access their programs or the software.

By using smart tool the user also creates a crossfade.

8 0
2 years ago
Can some please help me learn how to make a program via Binary Code?
padilas [110]
Look up binary code dictionary it will help you learn codes in letter of binary
8 0
3 years ago
Other questions:
  • When did the digital revolution begin
    10·1 answer
  • Today encoding scheme has taken over ascII by what
    5·1 answer
  • F a domain consists of dcs that are running verions of windows server earlier than windows server 2008, what replication method
    10·1 answer
  • What did Fulton design in addition to the steamboat
    5·1 answer
  • 6. A distribution consists of three components with frequencies 200, 250 and 300 having means
    14·1 answer
  • The domain name service (dns is a distributed database that allows users to communicate with each other computers by:
    7·1 answer
  • In a case where electrical current leakage from the circuit occurs, the GFCI would do the following:
    10·1 answer
  • A bluetooth network consists of _____ primary device(s) and up to ____ secondary devices.
    8·1 answer
  • 100 tickets are sold in a raffle with one prize. John has 8 tickets, Jamie has 10 tickets, find the probability that John wins
    11·2 answers
  • Where else can the computer send the results of processing other than to output​
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!