Informatics Practices
Which of the following is not a loop statement in Python?
- do-while
- while
- for
- All of these
Related Questions
Which of the following is a valid keyword?
- IF
- If
- if
- None of these
What does the following code print to console?
if True: print (101) else: print (202)- 101
- 202
- 303
- 102
What will be the output?
x = ['ab', 'cd'] for i in x: i.upper() print (x)- ['ab', 'cd']
- ['AB', 'CD']
- [None, None]
- None of these
Which statement is used to iterate itself over a range of values or a sequence?
- if
- while
- do-while
- for