Question:

Assuming the filename for the code below is /usr/lib/python/person.py
and the program is run as:

python /usr/lib/python/person.py 

What gets printed?

class Person:
    def __init__(self):
        pass

    def getAge(self):
        print __name__

p = Person()
p.getAge()

Answers:


Keywords:

© 2017 QuizBucket.org