University of Arizona, Department of Computer Science

CSc 120 (Spring 2026): Assignment 1

Start Date: Fri Jan 16
Due Date: OCA-1 Video: Python Review 1
Short problems: 7:00 PM, Thur, Jan 22
Long problems: 7:00 PM, Mon, Jan 26

This assignment aims to review various Python concepts covered in CSc 110—specifically: reading from a file; lists; 2-D lists (lists of lists); simple conditionals and loops; and functions (including passing values into and out of functions).

General Requirements

  1. You do not need to provide comments for the short problems.
  2. For the long problems, your code should follow the style guidelines for the class. Your long programs must define a main() function. For reference, see the 01_Python_review lecture slides, from slide 111 to 115.
  3. You may not use Python material not presented in class. Each long problem specification lists the language contructs that you are not allowed to use. If you don't know what any of those are, don't worry, because you cannot use them accidentally.
  4. You will received a -20 point deduction if any of the restrictions listed are found in your solutions.

Submission Instructions

Short Problems:
Your short problems should be submitted to Gradescope. Gradescope:

Long Problems:
Submit the following files to Gradescope:

NOTE: use underscores in the file names, not dashes.

word_grid.py
word_search.py

Short Problems (Due 7:00pm Thur, Jan 22)

(20 points)

The problems below must be solved and submitted to the PA-01-Shorts folder on Gradescope. Please follow this guide for turning in your short problems: Guide to submitting the short problems

Long Problems (Due 7:00pm Mon Jan 26)

(30 + 50 = 80 points)

  1. Word grid

  2. Word search