New course! Every coder should learn Generative AI!
Try a free lesson0
type casting in Python is achived by calling methods. if casting is not possible then method will raise the exception. below are the list of few methods which are useful for type conversion.
int
bin
float
list
tuple
dict
set
etc...