looking for some solutions? You are welcome.

SOLVED: Python: Triple Double Quote String format

user1187968:

I'm getting the following error, how should I fix it?

KeyError: 'a' Process finished with exit code 1

s = """
a b c {a}
""".format({'a':'123'})

print s



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE
Share:

No comments:

Recent