Computer Applications
Related Questions
Which of the following are invalid conditional statements of Python?
- IF
- Test if
- if-else
- if-elif
- if
- if-elif-else
Which of the following is used to define a block of code (e.g., body of if or body of a loop) in Python ?
- { }
- ( )
- indentation
- Quotation
What is the output of following code ?
if None : print "Up" else: print "Down"
- Up
- Down
- No output
- Up Down
What will be the output of following code ?
for i in range(1) : print i
- 0
- 1
- No output
- Error in code