Casting Variables
Look at the different code below and explain what variables need to be casted for the program to
work correctly.
REMEMBER: You can cast to string (str), integer (int) or float (float) for decimal numbers.
What variable needs to
be casted, to which data
type and on which line?
What variables need to
be casted, to which data
type and on which line?
What variable needs to
be casted, to which data
type and on which line?
What variables need to
be casted, to which data
type and on which line?