Write a python program to input your name and print it back with a massage Hello Dear Friend,Your name. How are you?
Answers
Answered by
4
name = input ("Enter your Name:")
print ("Hello ", name)
Hope it helps :)
Answered by
4
Python Program :
Explanation:
Name=input("Enter Your name: ")#Take the input from the user.
print("Hello Dear Friend, "+Name+". How are you?")#print the output.
Output:
- If the user input as "go", then the output is Hello Dear Friend, go. How are you?
- If the user input as "alexa", then the output is Hello Dear Friend, alexa. How are you?
Code Explanation :
- The above code is in python language, in which the first line is used to render a message to the user.
- Then take the input from the user, and then print the name with the message with the help of print function.
Learn More:
- Python : https://brainly.in/question/14689905
Similar questions