#StayHome #StaySafe! Learn Online and Upskill your talents
Skip to content
- What are the three ways of using if statement in Python?
- What are relational operators? What relational operators are available in Python?
- What are logical operators? What logical operators are available in Python?
- What is pseudocode? Write the pseudocode to input two numbers from the user and find theirsum.
- What is a loop? What are the looping constructs available in Python?
- Write the syntax of for loop and while loop in Python.
- What is the main difference between a for loop and a while loop?
- When does the else clause of a loop get executed? Is it compulsory to have else clause in aloop?
- What is the use of break and continue statements in a loop? Give a suitable example toexplain.
- What is an infinite loop? Give an example of (i) an infinite for loop, and (ii) an infinite whileloop.
- What is meant by nesting of loops? Give a suitable example to explain.
Website last modified On 29 November 2020