HW 1: Recursion

Due at: 2024-06-13 11:59:59 PM PST
  1. Q1: Sample Question
  2. Q2: Another Question

Q1: Sample Question

This is a sample question description.

def sample_question(a, b, c):
    """
    >>> another_question(1, 2, 3)
    6
    >>> another_question(0, 0, 0)
    0
    >>> another_question(3, 0, 0)
    3
    """
    return a + b + c

Q2: Another Question

This is another sample question description.

public class AnotherQuestion {
    public static void main(String[] args) {
        System.out.println("Hello world!");
        System.out.println("Outside solution");
    }
}

Submission

When you are done, submit your file to Gradescope. You only need to upload the following files:
  • hw01.py
You may submit more than once before the deadline; only the final submission will be graded. It is your responsibility to check that the autograder on Gradescope runs as expected after you upload your submission.

Back to Top

Accessibility Nondiscrimination

Copyright ©2026, Regents of the University of Californa and respective authors.

This site is built following the Berkeley Class Site template, which is generously based on the Just the Class, and Just the Docs templates.