6.3k views
8 votes
What does the following code print? time_of_day = ["morning", "afternoon", "evening"] for word in time_of_day: print "Good " + word

1 Answer

9 votes

Answer:

syntaxerror

Step-by-step explanation:

the print is missing a parenthesis - it will give the error:

SyntaxError: Missing parentheses in call to 'print'.

if you did put parenthesis it would say

Good morning

Good afternoon

Good evening

User Yalitza
by
5.3k points