You need to cast it to an integer before you can do substraction as int(input("x1"))
because input
returns a string.
2
solved Don’t understand cause of TypeError in my distance calculator [duplicate]
You need to cast it to an integer before you can do substraction as int(input("x1"))
because input
returns a string.
2
solved Don’t understand cause of TypeError in my distance calculator [duplicate]