I have the below code in a file a1.py
fff
def test(arg):
        print 'sid'
        print arg
        print 'sid2'
test()
The above code contains 2 errors:
- fff does not exist and is still being asked to print 
- Arguments are not passed in test() 
Now i write an another file b1.py In that file the code is:
import a1
print 'b1 execution done'
Que 1: I executed b1.py and a1.pyc file is generated. Why ? There is a syntax error.pyc file should not have been generated?
Que2: Explain in laymen terms what is pyc file and what role does it play?
Que3: Why is pyc file generated even if a1.py has errors ?(e.g. argument not being passed)
 
    