Capital Process Flow
Identify the Country Name
while i<len(pycountry.countries):
if subStrCheck(rawspeech,(list(pycountry.countries)[i].name)):
countryname = list(pycountry.countries)[i].name
break
i = i+1
if i == len(pycountry.countries):
countryname = "India" Identify the Capital for the Country
countryname = getCountryName(rawspeech)
capital = CountryInfo(countryname).capital()Last updated