Changes

Jump to: navigation, search

OPS445 Online Lab7

1 byte added, 12:46, 10 March 2022
m
Part 2: Global Scope
::*Note that the function1() call does not modify the global '''schoolName''' object but function2() does.
:5 . As the last task for this lab: modify the script above so that it would print the following, by changing only the scope of some objects. Save the program as '''lab7i.py''': <source lang="bash">
print() in main on schoolName: Seneca
print() in function1 on schoolName: SICT
572
edits

Navigation menu