how do you call the main function
if __name__ == “__main__”:
why .pyc extension is needed
python code is still compiles byte level code upon execution for speed
what is a global variable
variables that are defined to be available everywhere in the script
variable passed in to functions have which scope
local scope
what is Python’s way to handle exceptions
try/except statements
exceptions are
errors detected during execution
why do you want to handle exceptions properly
it allows you to catch them and possibly execute a piece of code on an event of an error (like notify or reboot a device)
what is IndexError
index value does not exist when reading a list