129k views
23 votes
In Python, when is the int( ) and float( ) functions used

1 Answer

6 votes

Answer:

To convert it into an integer, you need to use the int() function. Similarly, to convert the value of x into a float, use the float() function.

User Hongbo Miao
by
3.9k points