Why do I get an error when I try to cast a user-input float into an integer, but not when I try to cast an integer into a float?
In python, when I try to cast a float input by the user into an integer, I get an error. This is the code
Why do I get an error when I try to cast a user-inputted float into an integer, but not when I try to cast an integer into a float?
In python, when I try to cast a float inputted by the user into an integer, I get an error. This is the code