cis122.spr13.wk2d2.post

Cis 122 introduc1on to programming spring 2013 cis 122

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: func1on defini1on x is a parameter  ­ part of the func1on defini1on >>> add_one(101) >>> add_one(102) 101 and 102 are arguments – func1on call 1me. CIS 122 Introduc1on to Programming Spring 2013 CIS 122 Introduc1on to Programming Spring 2013 •  Func1ons can have local variables >>> def add_one(x): incr = x + 1 return incr >>> def add_one(x): incr = x + 1 return incr >>> def add_one(x): x = x + 1 return...
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 University of Oregon.

Ask a homework question - tutors are online