change the type of int to float in python code example
Example 1: float to int in python
# convert float to int
int(2.0) #output :2
Example 2: how to convert int in python
score = 89
score = str(score)
# convert float to int
int(2.0) #output :2
score = 89
score = str(score)