Ask coding questions

← Back to all posts
Why does my code not work?
OscarSowerbutts (9)

It seems that in part of my code
input('\n\nGuess #%s' % guess)
which is meant to prompt the user for their next guess.

It is meant to output this:

Round #1

Guess #1: <user input>

Guess #2: <user input>

etc etc

but it just has an error that I don't understand

pls help internet

Answered by ZhongRietveld (30) [earned 5 cycles]
View Answer
ZhongRietveld (30)

you must make of the variable you chosen a string

print("Round %d" % new_a)