how to translate any data type in integer code example
Example 1: python get int from string
>>> import re
>>> string1 = "498results should get"
>>> int(re.search(r'\d+', string1).group())
498
Example 2: convert float to int python
# convert float to int
x=3.1415
y=int(x)
print(y) #outputs 3