Input a welcome message and display it in Python program with source code and explanation. Today we are showing the code in python. This python project is useful for beginners and CBSE School Class 11 and Class 12 students computer science practical file and NIELIT O Level Programming and Problem Solving through Python (Module M3-R5).
Objective is Input a welcome message and display it in Python
Screenshot of Input a welcome message and display
Explanation of Python program code
message=input(“Enter welcome message : “) # message is a input variable that is taking value by “showing Enter welcome message”
print(“Hello, “,message) # The variable message is printed with a hello in the beginning.
Output of the above lines by clicking or directly pressing F5.
Here we are given the input Archit is a good boy, which is showed plus hello added in the beginning. Hence fulfilling the objective.
Testing is done .
Run the python program and enter the required data , whatever you will type, you will be greeted in the same way with the Hello addded in the beginning. This is the most basic program that comes in paper and is suitable for for practicle file.
Source code of Program -> click here
Thanks for reading and learning about this program.
for more python programs -> click here