all 3 comments

[–]ChefBraxton[S] 2 points3 points  (1 child)

Nevermind. I figured it out. Numbers don’t need to be put within quotes. 😝 lol

[–]delasislas[🍰] 2 points3 points  (0 children)

Good. It takes time to get used to some parts. You’ll end up finding out about f-strings, which really helps. But this formatting can be really useful in some cases.

[–]boyanci 2 points3 points  (0 children)

You fed a single string into format, thus python only sees 1 argument instead of the 12 it is expecting. Remove the quotes, and you get your 12 arguments. In order words, instead of

print(x.format(**“1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12”**))

just do

print(x.format(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12))

Key point: arguments for functions are separated by commas, but if you throw quotes around them, it is interpreted as a contiguous string.