CBSE Class 12 Computer Science Question 50 of 105

Python Revision Tour — Question 4

Back to all questions
4
Question

Question 4

State True or False : "Variable declaration is implicit in Python."

Answer

True.

Reason — In Python, variable declaration is implicit. This means that we don't need to explicitly declare the data type of a variable before using it. The type of a variable is determined dynamically at runtime based on the assigned value. For example:

x = 5        # x is implicitly declared as an integer
name = "Ravi"  # name is implicitly declared as a string