Please note, this is a STATIC archive of website www.w3schools.com from 05 May 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.
Disabled
×
Change Orientation
#convert from int to float: x = float(1) #convert from float to int: y = int(2.8) #convert from int to complex: z = complex(x) print(x) print(y) print(z)
1.0
2
(1+0j)
<class 'float'> <class 'int'> <class 'complex'>
×
Report a Problem:
Your E-mail:
Page address:
Description:
Disabled