CSC 221: Introduction to Programming
Fall 2023

HW 1: Python Statements

For this first assignment, you are to edit a series of print statements to include personal information about you. After entering your information, the modified print statements must execute in a Python interpreter without error. You may verify this in one of two ways:

  1. Copy-and-paste the statements below into an interpreter box in the online text book. Enter your information into the statements and run the code to be sure it displays correctly. Then, copy-and-paste your statements into a file using the editor of your choice and submit that file on BlueLine.
  2. Create a module using IDLE and copy-and-paste the statements into that module. Enter your information into the statements, save the module and run it to be sure the statements display correctly. Then, submit your module file on BlueLine.

BE AWARE: This assignment should not be difficult - it is intended to help your instructor get to know you while also verifying that you are able to edit and execute Python code. Submitting code that fails to display your information or produces error messages, however, will be heavily penalized. Double check your code before submitting. If you have any problems with getting the code to execute correctly, please see the instructor for help.

print("NAME: ") print("CLASS (e.g., freshman): ") print("INTENDED MAJOR (if known): ") print("HOMETOWN: ") print("FAVORITE MOVIE: ") print("SOMETHING UNIQUE/INTERESTING ABOUT YOU: ")