+ 1
What int do I need to convert?
4 Respuestas
+ 2
print("You lost " + str(100 - coins) + " Now you have " + str(coins) + ".")
elif coins == 100:
print("You haven't lost or won any money!")
else:
print("You made" + str(coins - 100) + "! Now you have " + str(coins))
You need to convert total part of int into str. Part conversation will throw error in concatenation
+ 2
I think, I'm not actually getting your point exactly. The correct version of the code is below, hope that gives your answer
https://code.sololearn.com/cz2kXElTxKC5/?ref=app
+ 1
Is what you wrote corrected or like the original?
+ 1
Thanks!