Why do I always get this error for my code: Invalid literal for int() with base 10:’’
I’m trying to make it so that the current player guess is none and I will input a question later.
num1 = 10
answer1 = int("")
totalnum = num1 + answer1
answer1 = int(input("enter a number: "))
Traceback (most recent call last):
File "<string>", line 7, in <module>
ValueError: invalid literal for int() with base 10: ''
>