This is one of the easiest problem ever. This is my solution (since you tagged your post for Python 3):
name = input('Enter your name: ')
print("Welcome", name)
For Python 2, just change input
to raw_input
, and remove the parenthesis of the print
function.
1
solved Ask the user for its name using raw_input [closed]