How do I overcome this concatenation issue? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do I overcome this concatenation issue?

I am writing a code in python that's a function code that displays a welcome message to a user name's input. This is the code. def welcome ( ): print("Welcome," + name) name = input( ) welcome( ) My code results: Welcome, input Expected result: Welcome, input. Please what adjustment would I do to achieve the expected result? If it's not a concatenation issue, please correct me where I'm getting it wrong.

17th Feb 2023, 8:18 PM
Chinonso Okorie
2 Answers
+ 2
Thank you Mirriele, I'm grateful.
17th Feb 2023, 8:40 PM
Chinonso Okorie
+ 1
Also it is adviced to make all declarations before defining a function
18th Feb 2023, 10:21 PM
Alex Wairegi
Alex Wairegi - avatar