0

Can you helpe me

# Take the name as input name = "input" # Use concatenation to join 2 strings message = "Nice to meet you, " + name # Display the message to the user print ('message')

29th Apr 2024, 5:49 PM
BOUABDALLAH ELHADJ
BOUABDALLAH ELHADJ - avatar
4 Answers
29th Apr 2024, 5:57 PM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
+ 3
You have 2 errors which you need to review in the course. How do you take input? (Isn't that already in the answer? Did you change it?) It has something to do with (). If you print your last line, what do you see? Why is that? What happens in python if we wrap text in " " or ' '? Is it different?
29th Apr 2024, 7:19 PM
Ausgrindtube
Ausgrindtube - avatar
+ 3
Alhaaz please don't post an answer as is. Especially, if it's not the right one for the task (you're missing a space). It doesnt help people to learn, it helps them to rely on others when they sometimes need to pay more attention or think and solve their own way.
30th Apr 2024, 5:28 PM
Ausgrindtube
Ausgrindtube - avatar
0
correct way:- name=input() message="Nice to meet you,"+name print (message)
30th Apr 2024, 4:39 PM
Alhaaz
Alhaaz - avatar