Home CPSC 110



To write Python programs using input and output statements, and variables.


In the last lab, you created a Python program which printed out your name to the screen.

This week, you will write a program which will ask the user to enter their name, and then read it into a variable. Your program will then ask the user for the day of the week. You will then print out a personalized greeting to the user, wishing them a happy day.

Example Run

Below is an example run of this program when it is done. The user input appears in bold. You can change the exact messages, but it should follow this basic idea:

What is your name? Ian
What day is it? Friday
Hello Ian, have a happy Friday!


When your program is finished, email the .py file to ifinlay@umw.edu. Please attach it as a file instead of copying it into the body of the message!

Copyright © 2018 Ian Finlayson | Licensed under a Creative Commons Attribution 4.0 International License.