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.
<span>The answer your looking for is Wrap text!!</span>
Answer:
Explanation:
ERROR IDENTIFICATION:
Sentence 1 => The error is option D - Dangling Modifier.
As it is not clear from the sentence whether Sharon was walking down the hall of her folders.
Sentence 2 => The error is option B - Lack of Parallelism.
Correct form should be <em>"We will be visiting our accounts in California, Oregon, and Washington."</em> Repeating the same information that has already been provided is not good.
ACTIVE PASSIVE VOICE:
Scenario 1 => Sentence is in <u>active voice</u> and <u>is not appropriate</u> for this situation.
Use of passive voice will be correct as we want to highlight the fact that an error has been made rather than who made the error.
Scenario 2 => Option B.
This choice is right because it first points out to a reference from a credible source about why an action is being taken and then defines that action.
Not naming countries or people, but its mostly Nation State Actors / Hactivits. Eh, not sure about hactivits but mostly Nation state actors.
You can call/execute a function in the body of a loop is a true statement.
<h3>Can you call a function in a loop?</h3>
Yes, one can be able to call a function that is said to be inside from a loop as well. The function is known to be one that can be called each time the loop is said to have executes and it is one that will stop calling after the loop finishes.
<h3>When the loop body is executed it is called?</h3>
A single execution of the loop body is known to be what we call an iteration. The loop is one that can makes three iterations.
Hence, You can call/execute a function in the body of a loop is a true statement.
Learn more about loop from
brainly.com/question/26568485
#SPJ1