Should the final print statement not be something like so:
print('You lose! The number was %S', num)
I'm a bit confused at to how this is printed, as there's not evidence of string concatenation here.
moderator: not quite, as that'd print out You lose! The number was %S 3
You instead want
print('You lose! The number was ', num)