ICS 32A, UC Irvine
Midterm, Page 2 of 8
Answer the following questions.
A design choice we discussed in writing Python programs is to make sure to never write code that
in in an
if __name__ == ‘__main__’
statement, a class, or a function definition (except for
global constants). Why is that the case?
Mark an “X” for the answer(s) you choose.