0
I have been at it for hours and just got totally stuck on the chat bot v1.1 very first problem got me stuck.
I am 26 lessons into getting started with Python and am stuck writing the very first code.Use string concatenation to join strings together and display a personalized friendly message. I am not getting past "name" for some reason. This what I got: # Take the name as input name = "Mary" # Use concatenation to join 2 strings message = ("Nice to meet you, " + name) # Display the message to the user print (message) What am I doing wrong? And what are tags?
2 ответов
+ 2
Don’t hard code the name. What will you do if the name isn’t mary. The whole point of programming is to set up one code that will haandle all cases.
Think about how to get user input.
0
ALEX CHAMIE
# Take the name as input
name = "Mary" # no hardcoding
name = input() # string input