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