which of this word is a reserved words in phython ? a)while b) payroll c)names d)pizza
Answers
Answered by
5
Answer:
Keywords are the reserved words in Python. We cannot use a keyword as a variable name, function name or any other identifier. They are used to define the syntax and structure of the Python language.
Answered by
0
a)while
while Word is a reserved words in python.
- In Python, a while loop iterates over a block of code while the test expression (condition) is true. We often use this loop when we are unclear of how many times to iterate.
- The while loop control flow statement allows code to be executed repeatedly in response to a given Boolean condition. While loops can be thought of as iterative forms of if statements.
- Python does not have built-in functionality for explicitly defining a do while loop, in contrast to other languages. Python does, however, allow for the simulation of a do while loop. A "While" loop is used to repeatedly run a certain section of code an arbitrary number of times when a condition is not met.
- For instance, if we want to ask a user for a number between 1 and 10, but we don't know how often they might enter a greater number, we keep asking "while the value is not between 1 and 10."
#SPJ2
Similar questions