cis122.spr13.wk4d2.post

Python primi2ve elements objects have types values

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CIS 122 Introduc2on to Programming Spring 2013 variables v. strings >>> ‘hello’ >>> hello >>> gree2ng = ‘hello’ >>> gree2ng >>> hello = ‘hello’ >>> gree2ng = ‘goodbye’ Parameters v. Arguments >>> def maxmin(w, x, y, z): ‘’’ what does this func2on do?’’’ print(‘w’, ‘x’, ‘y’, ‘z’) result1 = min(w, x) result2 = min(y, z) return max(result1, result2) >>> maxmin(100, 90, 10, 9) 2 4/26/13 CIS 122 Introduc2on to Programming Spring 2013 CIS 122 Introduc2on to Programming S...
View Full Document

This note was uploaded on 02/12/2014 for the course CIS 122 taught by Professor Staff during the Spring '08 term at Oregon.

Ask a homework question - tutors are online