Class Notes (837,488)
Canada (510,274)
Computing (443)
CISC 121 (27)
Lecture

4.3.pdf

1 Page
160 Views
Unlock Document

Department
Computing
Course
CISC 121
Professor
Robin W Dawes
Semester
Winter

Description
4.3 Friday, February 1, 2013 10:30 AM More recursion: def really_change_PI(new_value) globalPI PI = new_value ^Sets global variable PI equal to new value… Avoid global variables whenever even remotely possible Summing the contents of a list With pop: def list_sum(list_1): if len(list_1) == 0 return 0 else: x = list_1.pop()
More Less

Related notes for CISC 121

Log In


OR

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit