Advertisements
Write a Python program that takes the user’s name as input and displays and welcomes them.
Expected behaviour:
Enter your name: Nimal
Welcome Nimal
The Python code for taking the input and displaying the output is already provided.
answer for this code!
>Solution :
name = input("Enter your name: ")
print("Welcome", name)