Informatics Practices
Which of the following is a valid keyword?
- IF
- If
- if
- None of these
Python Control Flow
2 Likes
Answer
if
Reason — In Python, keywords are case-sensitive, meaning they must be written exactly as specified by the Python language. The valid keyword among the options provided is if.
Answered By
2 Likes
Related Questions
Which of the following is not a decision-making statement?
- if-elif statement
- for statement
- if-else statement
- if statement
The symbol used to end the if statement:
- Semicolon (;)
- Hyphen ( - )
- Underscore ( _ )
- Colon (:)
What does the following code print to console?
if True: print (101) else: print (202)- 101
- 202
- 303
- 102
Which of the following is not a loop statement in Python?
- do-while
- while
- for
- All of these