Define a class named American and its subclass NewYorker.


Topic: Define a class named American and its subclass NewYorker.

Solution

class American(object):
    pass
class NewYorker(American):
    pass



List all Python Programs