I'm trying to use an input function in python and want to format how the input actually displays in python.
The code is currently:
price = float(input("Enter value: "))
and prints out the following if I input 9.0 (note that python does this automatically without using a print statement).
Enter value: 9.0
How do I format the output so that it only shows the value with 0 decimal points i.e., should print out
Enter value: 9
Using a print() statement and {:,g} is not an option in this exercise.