This is an incomplete question. The question I was able to find as the complete one is as follows:
Match the following terms and definitions
- stack diagram
- flow of execution
- local variable
- function call
- header
-The order in which statements are executed during a program run. Answer 1
-The first part of a compound statement, begins with a keyword and ends with a colon ( : ) Answer 2
-A statement that executes a function. It consists of the name of the function followed by a list of arguments enclosed in parentheses. Answer 3
-A variable defined inside a function that can only be used inside its function. Answer 4
-A graphical representation of functions, their variables, and the values to which they refer. Answer 5
<h2>Answer with Explanation:</h2>
- Flow of Execution: The order in which statements are executed during a program run. This is done from top to bottom which means the statement written first is executed first.
- Header: The first part of a compound statement, begins with a keyword and ends with a colon ( : ). A header is given usually at the top. It can contain libraries being used in the program body.
- Function Call: A statement that executes a function. It consists of the name of the function followed by a list of arguments enclosed in parentheses. It is used to perform specific functions that are defined before calling a function. A program can be called as many times as needed.
- Local Variable: A variable defined inside a function that can only be used inside its function. A local variable with same name can be used inside two different functions but they are needed to be defined first.
- Stack Diagram: A graphical representation of functions, their variables, and the values to which they refer. It is the tool for knowing the state of program at the time given.
i hope it will help you!
Loops are program statements that are repeated as long as the loop condition is true.
The loop in Python, where comments are used to explain each line is as follows:
#This initializes the number of pets to 0
count = 0
#This gets input for the pet name
pet = input("Pet: ")
#This is repeated until the user enters "rock"
while pet.lower() != "rock":
#This increases the number of pets by 1
count+=1
#This prints the pet and the number of pets
print("You have a",pet,"with a total of",str(count),"pet(s)")
#This gets input for the pet name
pet = input("Pet: ")
Read more about loops at:
brainly.com/question/19344465
```
<ul>
<li>item1</li>
<li>item2</li>
</ul>
```
It's the same for ol.