What is type casting in python?

DS301222
type casting is the process of converting data of one type to another
num = 45
str(num) >>>> num = “45”
float(num) >>>>>num = 45.0

2 Likes

Good one @souravkrsheel99 keep practicing

1 Like

DS301222
python avoids the loss of data in lmplicit type conversation
boolean
character
integer etc

3 Likes

@Jangaprasannareddy21 well explained :innocent::innocent: