Hello! You were basically correct. Just a non-consequential code-wise formatting discrepancy. For your last line, have a space after was:
print("You lose! The number was ", num)
I think the check is looking for concatenation, and your approach is actually more correct according to what's wanted.
I'm okay with the pickiness elsewhere described above--sorry, as I do understand the frustration, but at the same time preciseness, even for internal white space, is important--but this one is different as it's inconsistent and incorrect.
At a glance, no or not many such issues, and I have a lot of other fixes to do first. I won't open an issue at the moment, but would be later on willing to fix it up. Please like and/or @ me here if anyone else runs across the same issue and I'll bump up this fix's priority ahead of others!