10. Write a python program to change the variable_a from type of integer to string type.
The output is:
variable_a = 666
Answer: The type of variable_a change from integer to: class 'str'
Answer:
variable_a = 666 new_variable = str(variable_a) print("The type of variable_a change from integer to: ", type(new_variable))
More Exercises:
Python String ExercisesMore Numpy Exercises:
Numpy String ExercisesMore Pandas Exercises:
Pandas Series ExercisesMore Tutorials:
Python Installation - Linux (Ubuntu)