0

Why are we not declare int or float variable?

29th May 2017, 9:20 AM
Hardik Aghara
Hardik Aghara - avatar
1 Answer
0
In the background, python auto checks what each value is. Be that an integer, float, Boolean, or string. This isn't just for convenience, but also makes the variables themselves be able to accept any data type. This makes python more versatile and efficient than some other languages that require variables to be declared a data type first.
29th May 2017, 2:22 PM
Sapphire