In python we can make a variable point to a value of different type by reassigning it to a value of that type, this is called dynamic typing.
For instance:
var1 = 23
var1 = ‘Mercedes’ # Reassignment to a different variable type
In python we can make a variable point to a value of different type by reassigning it to a value of that type, this is called dynamic typing.
For instance:
var1 = 23
var1 = ‘Mercedes’ # Reassignment to a different variable type