+ 1

Type conversion

Pls I don’t understand this can someone pls break it down

10th Jun 2020, 8:28 PM
Queen Yang
Queen Yang - avatar
2 Respuestas
+ 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"
10th Jun 2020, 9:28 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar