It wont accept the else text +value thing, how could i make it have text then changing value and then text again? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

It wont accept the else text +value thing, how could i make it have text then changing value and then text again?

x = 99 if x == 100: print("Your mana is full") else: print("You have"x"mana.")

18th Nov 2019, 1:43 AM
Nikola lazic
Nikola lazic - avatar
2 Answers
+ 6
print("You have", x, "mana.")
18th Nov 2019, 2:28 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Thanks alot :D
18th Nov 2019, 10:07 AM
Nikola lazic
Nikola lazic - avatar