State True or False. “Variable declaration is implicit in Python.”
Advertisements
Question
State True or False.
“Variable declaration is implicit in Python.”
Options
True
False
MCQ
True or False
Advertisements
Solution
This statement is True.
Explanation:
Assigning a value to a variable without specifying its type is called an implicit declaration.
Example:
- x = 5
- x = "five"
Python supports the implicit declaration of variables. So, the given statement is true.
shaalaa.com
Scope of a Variable in Python
Is there an error in this question or solution?
