class India(): def capital(self): print("New Delhi is the capital of India.") def language(self): print("Hindi the primary language of India.") def type(self): print("India is a developing country.") class Japan(): def capital(self): print("Tokyo is the capital of Japan.") def language(self): print("Japanese is the primary language of Japan.") def type(self): print("Japan is a developed country.") obj_ind = India() obj_Japan = Japan() for country in (obj_ind, obj_Japan): country.capital() country.language() country.type()