Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

2.

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:
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!')

You might also like