Type Error: Unsupported Operand Types Int And Nonetype
Hey guys I am working on a python program and I keep getting errors returned from the loop which is supposed to just reprompt the user to enter a number. The problem I am having is
Solution 1:
Python functions return None
by default, if nothing is returned. You have an else
clause that calls a function, but does nothing with it, and the function ends there, therefore if it goes down that control flow path, you will return None
from that function.
Post a Comment for "Type Error: Unsupported Operand Types Int And Nonetype"