B. Answer ih one word:
1. Mention the other name for Iterative statements.
2. Name the two types of Iterative statements.
3. Name the two membership operators in Python.
ng the
4. Which function is used to check the range in a loop?
Answers
Answered by
53
Answer:
1. Looping statements
2. while, for
3. in, not in
4. range()
Answered by
17
1. Loop
2. While Statement, do-while statement, and for statement
3. in and not-in
4. range () function
Explanation:
- An iteration statement/loop, repeatedly executes a statement (loop body), till the controlling expression (having a scalar type) is false (0).
- The while statement assess the control expression prior to executing the loop body. The do-while statement executes the loop body where atleast one execution of the loop body is assured. The for statement executes the loop body based on the assessment of the 2 of 3 expression
- The Phyton membership operators are used to check if a value is found within a sequence. in evaluates to True if the left operand value appears in the sequence as found in the right operand and not in evaluates to True if the left operand value does not appear in the sequence as found in the right operand
- The range () function generates a sequence of numbers over time.
Similar questions