![cam3227](/avatars/15897.jpg)
cam3227
19.08.2020 •
Computers and Technology
1.16 LAB: Input: Welcome message Write a program that takes a first name as the input, and outputs a welcome message to that name. Ex: If the input is Pat, the output is:
Solved
Show answers
More tips
- S Society and Politics Skoptsy: Who They Are and How They Perform Castration?...
- H Health and Medicine How to Calculate Your Ideal Weight?...
- S Style and Beauty Discover the Art of Nail Design: How Do You Paint Your Nails?...
- P Philosophy How to Develop Extrasensory Abilities?...
- O Other Everything You Need to Know About Kudyabliks...
- C Computers and Internet The Twitter Phenomenon: What it is and How to Use it...
- C Computers and Internet How to Choose a Laptop: Expert Guide and Tips...
- C Computers and Internet How to Choose a Monitor?...
- H Horoscopes, Magic, Divination Where Did Tarot Cards Come From?...
- S Style and Beauty How to Make Your Lips Fuller? Ideas and Tips for Beautiful Lips...
Ответ:
Following are the program to this question:
val=input("")#defining val variable that inputs value
print('Hello',val,', we welcome you...')#defining print method, that print input value with the message
Output:
Pat
Hello Pat , we welcome you...
Explanation:
In the above given, python code a "val" variable, and the print that is inbuilt method is declared, inside the "val" variable the input method is used, which is used to input the value from the user side.
In the next line, the print method has declared, which is used to print the value with the message.
Ответ: