Changes

Jump to: navigation, search

OPS435 Python Lab 7

225 bytes removed, 12:52, 3 December 2017
INVESTIGATION 1: Classes and Objects
Note that the function1() call does not modify the global '''authorName''' variable but function2() does.
 
As an exercise: modify the example above so that it would print the following, by changing only the scope of some variables. Save the program as '''lab7c.py''':
 
<source>
Andrew
Andrew 1
Andrew 1
Andrew 2
Andrew 1
</source>
== Object/Instance Scope ==

Navigation menu