Easy
A Method Only the Child Has
class Phone has call() returning calling. class SmartPhone(Phone) adds browse() returning browsing. Read words phone or smart on one line. For each, print call() and then browse() if the object has it (hasattr), otherwise no browser, on one line.Input
Words separated by spaces.
Output
One line per word.
Sample 1
Input
phone
Output
calling no browser
Sample 2
Input
smart
Output
calling browsing
Output appears here