Since, Python is a dynamic programming language so there is no need to declare such type of variable, it automatically declares when first time value assign in it.
Still, this is a common question asked by many programmers that can we declare any variable without any value?
The answer is: "Yes! We can declare such type of variable". To declare a variable without any variable, just assign None.
Syntax:
variable_name = None
Example:
num = None
Let’s understand through a program:
Output
value of num: None Nothing value of num: 100need an explanation for this answer? contact us directly to get an explanation for this answer