× More To Code.

Python Program For Read Your Name and Print HELLO Message With Name.

Printing HELLO Message With Input Name in Python.



Python Program For Read Your Name and Print HELLO Message With Name.


Program Explanation :


# Prompting the user to enter their name and storing it in the variable 'name' using input() function.

name = input("Please Enter Your Name Here:\n")

# Displaying a greeting message with the user's name concatenated using the '+' operator.

print("Hello " + name)


Here is the program :

name = input("Please Enter Your Name Here:\n")

print("Hello " + name)


Here is the output :

Please Enter Your Name Here: Tony 

Hello Tony 

Post a Comment

Previous Post Next Post