TypeError: int() argument must be a string, a bytes-like object or a real number, not 'Future'

Viewed 47

I am writing my first calculator code in python and classic programming error appears to send me on hiatus again :

TypeError: int() argument must be a string, a bytes-like object or a real number, not 'Future'

Below is the code: any idea what's happening?

input_1 = input(" what's the first no.")
input_2 = input(" what's the second no. ")
sum = int(input_1)
print(sum)
1 Answers

I think that's the bug of Jupyter (you're doing your code there, right?).

In standard Interpreter there's no any error, your code is correct.

Related