get int from float python code example
Example 1: int to float python
a = 5
a = float(a) # int to float
Example 2: float to int in python
# convert float to int
int(2.0) #output :2
a = 5
a = float(a) # int to float
# convert float to int
int(2.0) #output :2