The document describes a coding lab activity that asks the student to write a program that takes a first name as input and outputs a welcome message to that name. The example input of "Pat" outputs the message "Hello Pat and welcome to CS Online!". The code sample provided takes a user name as input and prints out the welcome message string formatted with that name.
The document describes a coding lab activity that asks the student to write a program that takes a first name as input and outputs a welcome message to that name. The example input of "Pat" outputs the message "Hello Pat and welcome to CS Online!". The code sample provided takes a user name as input and prints out the welcome message string formatted with that name.
The document describes a coding lab activity that asks the student to write a program that takes a first name as input and outputs a welcome message to that name. The example input of "Pat" outputs the message "Hello Pat and welcome to CS Online!". The code sample provided takes a user name as input and prints out the welcome message string formatted with that name.
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: Hello Pat and welcome to CS Online! LAB ACTIVITY 2.16.1: LAB: Input: Welcome message 10 / 10
user_name = input()
print ('Hello', user_name, 'and welcome to CS Online!')