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.") class Iran(): def capital(self): print("Tehran is the capital of Iran.") def language(self): print("farsi is the primary language of Iran.") def type(self): print("Iran is a developed country.") country=[] country.append(India()) country.append(Japan()) country.append(Iran()) for i in range(3): country[i].capital() country[i].language() country[i].type()