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 have a user inputs float (e.g 4.5) and the output would be (4).
i = input("Enter any value: ")
print(int(i))