I'm getting type error for following line:
a, b = task_one(int(input("Enter number of your choosing: "), input("Enter second number: " ))) TypeError: 'str' object cannot be interpreted as an integer
I don't understand why input is classified as a string when I enter integers and use int() function.
I think this is the better way when you are taking multiple inputs in single line.
a,b = list(map(int, input().split()))
1.4m articles
1.4m replys
5 comments
57.0k users