a=10 b=20.0 c="2.0" print("integer to string") d=str(a) print(d) print(type(d)) print("float to integer ") d=int(b) print(d) print(type(d)) print("String to float ") d=float(c) print(d) print(type(d))
a=10 b=20.0 c="2.0" print("integer to string") d=str(a) print(d) print(type(d)) print("float to integer ") d=int(b) print(d) print(type(d)) print("String to float ") d=float(c) print(d) print(type(d))
Leave a Reply