How to use user input into defined function? [closed]
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 hours ago.
开发者_如何学运维 Improve this questionenter image description here
It keeps giving me " unsupported operand type(s) for -: 'str' and 'str' " error. If I directly defined the points for start and end in the code it works but not when I try the input function.
I don't understand why it won't use the user input for the function even when I change it into a tuple, a list, or an integer.
精彩评论