def addCountry(): name = Validator.inputCountry("Enter country name: ") population = Validator.inputPopulation("enter country population: ") country = Country(name, population) countries.append(country)