-2

Simple question, look at this code..

greeting_morning = "good morning"
greeting_night = "good night"

time = "morning"

print(greeting_time) # should be printing good morning

And this results an error..

Did you notice my problem?

I just want it to print "good morning," but it won't.

How can I properly fix it?

0

1 Answer 1

1

greeting_time is a variable that does not exist. You only have these variables available:

print(greeting_morning) is what you need to do to get that output.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.