Type casting is converting one data type to another.
age = "20"
age = int(age)
print(age + 5)
Common casting functions: int(), float(), str()
Next Lesson →Type casting is converting one data type to another.
age = "20"
age = int(age)
print(age + 5)
Common casting functions: int(), float(), str()
Next Lesson →