New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Type conversion
Pls I don’t understand this can someone pls break it down
2 Answers
+ 5
a = "5" # now it's a string
a = int(a) # now it's an integer 5
a = float(a) # now it's a float 5.0
a = str(a) # now it's a string again "5.0"