KnowledgeBoat Logo
|

Computer Science

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

Python Funda

4 Likes

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

Answered By

3 Likes


Related Questions