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?

1st Oct 2025, 1:43 AM
ALEX CHAMIE
ALEX CHAMIE - avatar
4 Antwoorden
+ 3
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.
1st Oct 2025, 2:06 AM
Zvi
Zvi - avatar
+ 2
ALEX CHAMIE # Take the name as input name = "Mary" # no hardcoding name = input() # string input
1st Oct 2025, 3:26 AM
BroFar
BroFar - avatar
+ 2
Your code works, but the code wants you to use input() instead of hardcoding "Mary"[hard coding means writing a fixed value directly into your code instead of letting the program get it from somewhere else] So it shoud have an input() so the user can type any name And tags are just like hashtags,so people can find your post more easily
1st Oct 2025, 3:45 AM
Alex Bright
Alex Bright - avatar
0
By the way we are Namesakes! Two Alexes in one place=Alex-square Guess I found my namesake coding twin 💻🧑🏼‍💻 Nice to meet you Alex,and whenever you have any question/questions about coding do not hesitate to ask every one is ready to help
1st Oct 2025, 4:20 AM
Alex Bright
Alex Bright - avatar