sa 11 cs chapter 6

What do you mean by dynamic typing of a variable ? What is the caution you must take care of ?

In python we can make a variable point to a value of different type by reassigning a value of that type, this is called dynamic typing. For instance: var1 = 56 var1 = ‘Rail’ # Reassignment to a different variable type Caution that should be taken is that certain operations are not valid for certain

What do you mean by dynamic typing of a variable ? What is the caution you must take care of ? Read More »