Friday, August 6, 2021

Variables and Data-types in Python

 Compare to other programming languages, one big difference in Python you no need to declare the variable type. 


for example 

employee_name = "bala"

employee_name 

in the above example I didn't declare the variable type called string. but it takes automatically. 

its known as dynamically typed programming. 

In addition to Int, float, Boolean and String we have datatype called "Complex"


Complex data type example 

a1=3+5j

type (a1) = complex