cis122.spr13.wk2d2.post

Def calculatew x a x b w 1 return a b

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: x 1 4/11/13 CIS 122 Introduc1on to Programming Spring 2013 CIS 122 Introduc1on to Programming Spring 2013 What is the output of this code? def calculate(w, x): a = x b = w + 1 return a + b + 3 >>> calculate >>> calculate(2, 0) What is the output of this code? def calculate(w, x): a = x b = w + 1 return a + b + 3 >>> calculate >>> calculate(1, 5) CIS 122 Introduc1on to Programming Spring 2013 CIS 122 Introduc1on to Programming Spring 2013 cellphone1 = 4362578 cellphone2 = 5744096 cellphone1 = 4362578 cellphone2 = 5744096 >>> cellphone1 5744096 >>> cellphone2 4362578 CIS 122 Introduc1on to Programming Spring 2013 CIS 122 Introduc1on to Programming Spring 2013 cellphone1 = 4362578 cellphone2 = 5744096 temp = cellphone1 cellphone1 = cellphone2 >>> cel...
View Full Document

Ask a homework question - tutors are online