+ 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)

31st Jul 2023, 2:28 PM
Aydan
5 Respostas
+ 2
Using input() you can input name.
1st Aug 2023, 6:28 AM
R🍁🇮🇳
R🍁🇮🇳 - avatar
+ 4
You assigning the name is not taking input. Are you required to prompt the user for this assignment?
31st Jul 2023, 2:39 PM
Justice
Justice - avatar
+ 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. :)
31st Jul 2023, 2:45 PM
Justice
Justice - avatar
+ 1
Thanks for reply, How I can input name?
31st Jul 2023, 2:44 PM
Aydan
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)
2nd Aug 2023, 7:54 AM
Python state
Python state - avatar