cis122.spr13.wk4d2.post

Printw x y z result1 minw x result2

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: hello’ >>> x = greet() >>> x def greet(): print(‘hello’) >>> x = greet() >>> x CIS 122 Introduc2on to Programming Spring 2013 >>> def maxmin(w, x, y, z): ‘’’ what does this func2on do?’’’ print(w, x, y, z) result1 = min(w, x) result2 = min(y, z) print(max(result1, result2)) >>> maxmin(100, 90, 10, 9) >>> def maxmin(w, x, y, z): ‘’’ what does this func2on do?’’’ print(w, x, y, z) result1 = min(w, x) result2 = min(y, z) print(max(result1, result2)) return max(result1, result2) >>> maxmin(100, 90, 10, 9) CIS 122 Introduc2on to Programming Spring 2013...
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