CS190/295 Programming in Python for Life Sciences: Lecture 6. Instructor: Xiaohui Xie University of California, Irvine. Announcement. Homework #4 will be out this week (will send out emails). Due on Feb 16 (next Thur) Lab session next Tuesday. Control Structures.
Instructor: Xiaohui Xie
University of California, Irvine
Part I: Decision structures
Part 2: Loop Structures
Extend this program so that it computes not only the mean, but also the median and standard deviation of the data
Tup1 = (1,2,3,4)
Tup2 = (‘UCI’, ‘UCLA,’UCSD’)
# get a list of numbers and store in a list
x = [1,2,3,4]
y = x
y = ‘hello’
Note that items in x are also changed after y assignment.
>>> def my_func(x):
>>> x = [1,2,3,4]