+ 1
What is problem? Python
# 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) name = "Robert" # Use concatenation to join 2 strings message = ("Nice to meet you, " + name) # Display the message to the user print(message) #testcase3 #Take the name as input name = "Anna" # Use concatenation to join 2 strings message = ("Nice to meet you, " + name) # Display the message to the user print(message)
5 Answers
+ 2
Using input() you can input name.
+ 4
You assigning the name is not taking input. Are you required to prompt the user for this assignment?
+ 2
Take another look at the lesson this assignment is a part of. It's a function that will act a little similar to the print one. :)
+ 1
Thanks for reply, How I can input name?
0
Please modify the code . Don't input manually. After modification any name , number or Character can be used just try it.
Modified Code
# Take the name as input
name = str(input("Please Enter your Good Name: "))
# Use concatenation to join 2 strings
message = ("Nice to meet you, " + name)
# Display the message to the user
print(message)