+ 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.
2 Answers
+ 2
Thank you Mirriele, I'm grateful.
+ 1
Also it is adviced to make all declarations before defining a function