def country_intro(dictionary):
for key, val in dictionary.items():
print(f'The name of the country is {key} and it is famous for {val}')
countries_famous = { }
while True:
country_name = input('Enter the name of the country:')
country_famous = input('Enter what it is famous for:')
countries_famous[country_name] = country_famous
country = input('Another country? (y/n)')
if country == 'y':
continue
else:
break
country_intro(countries_famous)