Changes

Jump to: navigation, search

Rchan sandbox

1,520 bytes added, 10:41, 3 November 2019
Part 2 - Global Scope
== Part 1 - Local Scope ==
== Part 2 - Global Scope ==
 
= LAB 7 SIGN-OFF (SHOW INSTRUCTOR) =
:'''Have Ready to Show Your Instructor:'''
 
::<span style="color:green;font-size:1.5em;">&#x2713;</span> Output of: <code>./CheckLab7.py -f -v</code>
::<span style="color:green;font-size:1.5em;">&#x2713;</span> Output of: <code>cat lab7a.py lab7b.py lab7c.py lab7d.py</code>
 
:'''Files to be submitted individually to Blackboard:'''
:: Name the output of <code>./CheckLab7.py -f -v </code> as lab7_[seneca_id].txt
:: Python script files for this lab: lab7a.py, lab7b.py, lab7c.py, and lab7d.py.
 
=Lab Review=
# What is a program-defined type object?
# What python keyword is used to create a blue-print for a new type of objects?
# What are the two types of attributes a Python object may have?
# Where does a program-defined python object get its methods from?
# What is the difference between a pure function and a modifier function?
# What does the time_to_sec() function do?
# What does the sec_to_time() function do?
# What is the reason for not making sec_to_time() a mothod for the Time object?
# How do you make an external function to be a method of a programmer-defined object?
# What does the special method '''__init__''' do?
# What does the special method '''__str__''' do?
# What does the special method '''__repr__''' do?
# What does '''operator overloading''' refer to in Python?
# What does the term '''scope''' mean in Python?
# When do you want to create an object with '''global''' scope?
# What '''scope''' does an object have if it is created in a function?
1,760
edits

Navigation menu