Python Error

Asked 2 years ago, Updated 2 years ago, 47 views

starbucks="Iron Man", "Thor", "I am Groot"]

for customer in starbucks:

    print ("{0}, coffee is ready.")format(customer))

I think I used this for correctly, but it doesn't work. SyntaxError: invalid syntax appears Is it a code problem? Is it a program setting problem?

python error

2022-09-20 19:09

1 Answers

It runs well when I turn it around.

Click the blue button "Run Code" in the lower right corner of the code below to check it out.

starbucks="Iron Man", "Thor", "I am Groot"]

for customer in starbucks:
    print ("{0}, coffee is ready.")format(customer))


2022-09-20 19:09

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.