[Solved] KeyError in String Formatting of Raw Input


You need to use named arguments to use their name in the template:

"...{name}....".format(name=name, quest=quest, color=color)

If you use positional arguments, then you need to use index in template:

"...{0}...".format(name, quest, color)

Documentation: https://docs.python.org/2/library/string.html#formatstrings

solved KeyError in String Formatting of Raw Input