cps6-111025

cps6-111025 - What happens to a variable when it is sent to...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
CompSci 6 Introduction to Computer Science October 25, 2011 Prof. Rodger
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Announcements • No reading or RQ for next time • Apt-three due Thursday • Today – More on apts – More on parameters
Background image of page 2
Passing parameters to functions • Parameter: in definition • Argument: in use • Questions: – What if the name of the parameter is same as the name of the argument?
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: What happens to a variable when it is sent to a function? After the call to the function? Mutable/immutable Mutable Lists, sets Immutable Numbers, strings, tuples What happens to mutable and immutable objects when you pass them as arguments? How does one change the value of a number/string/tuple by using a function? Classwork!...
View Full Document

Page1 / 4

cps6-111025 - What happens to a variable when it is sent to...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online