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.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
CS190/295 Programming in Python for Life Sciences: Lecture 6
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]