Code Generated by Chatbot in Lab: Running Your First Program. "Practice for Yourself."

Hello everyone,

I have a question related to Week 1 “Lab: Running Your First Program.”
When using Jupyter, I was working on “Practice for Yourself” part where there is comment" # Write code that answers the question “How are you feeling today?” I copied and pasted this to the chat bot and it generated this code:

Ask the user how they are feeling

feeling = input("How are you feeling today? ")

Print the user’s response

print(“You are feeling:”, feeling)

When i hit Shift+Enter it looks like this:
It created a box next to " how are you feeling today?" for me to input an answer
Is this correct? is this code correct?

Thank you!

1 Like

Yes it seems fine.

2 Likes

Thank you!

1 Like

Very much appreciated. I can move on now. :smiley:

2 Likes