Sep-08-2019, 10:03 AM
Well yeah, "f" doesn't represent an integer in decimal.
int
throws an exception if it can't convert its argument (the exception is the ValueError
you're seeing. You need to put that code within a try
block and handle the exception in an except
block.