Feb-03-2018, 10:54 PM
Hello! I've just, and I mean *just*, started playing with python using pycharm and I've run into a problem while trying to follow a video tutorial on coding a very basic text based game. I thought I did things correctly but apparently I did something wrong somewhere.
Sorry if this is painfully obvious but I don't know what it could mean, or even if I should be providing more information to solve it.
def fight(): print("%s Vs. %s" % playerc.name, enemy.name) print("%s's Health: %s/%s %s's Health: %s/%s" % playerc.name, playerc.health, playerc.maxhealth, enemy.name, enemy.health, enemy.maxhealth)It keeps giving me this error and I don't know what is happening.
Error:line 116, in fight
print('%s Vs. %s' % playerc.name, enemy.name)
TypeError: not enough arguments for format string
Sorry if this is painfully obvious but I don't know what it could mean, or even if I should be providing more information to solve it.