I need to convert user input to int. Below is what I have written so far which is not working out. It only accepts int. the end goal is to
input
int
The input are in string format so first you need to convert it into float and then from float to int
You can do
i = input("Enter any value: ") print(int(float(i)))
or you can do
i = float(input("Enter any value: ")) print(int(i))