Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def menu():
- print("Here is the MENU:")
- print("1) Find the average Global Hunger Index of 5 of the most hungriest countries")
- print("2) Take a Survey")
- print("3) Print research")
- print(" ")
- def average(lst):
- ans = int(input("Please make a selection (e.g. 1): "))
- countryLst = "Central African Republic, Yemen, Chad, Madagascar, and Zambia"
- if ans == 1:
- print("Selected Option 1")
- print("")
- print("GLOBAL HUNGER INDEX AVERAGE =")
- print(sum(lst) / len(lst))
- print("LIST OF GLOBAL HUNGER INDEXES = ")
- print(lst)
- print("")
- elif ans == 2:
- print("Selected Option 2")
- print("")
- print("Here is the list of the most hungriest countries : " + countryLst + ".")
- surveyResponse = input("What country out of the list above do you think needs the most help?")
- print("You're response was: " + surveyResponse + ".")
- print("Thank you for your answer!")
- print("")
- elif ans == 3:
- print("Selected Option 3")
- print("")
- print("Research Results:")
- print("What are the most remote parts of the world?")
- print("Tristan da Cunha, Motuo, Ittoqqortoormiit, McMurdo Station, and Easter Island to name a few.\n")
- print("What area in the world has the most in need?")
- print("Most countries in Africa and South America. For example: Central African Republic, Yemen, Chad, Madagascar, and Zambia.\n")
- print("What are the basic needs for a country? ")
- print("Food, water, shelter, sanitation, education, healthcare, nutrition, and health services are examples of basic country needs.\n")
- else:
- print("Exit...")
- menu()
- picked_lst = [53.6,45.9,44.2,41.5, 38.1]
- average(picked_lst)
- avg_hunger = 200
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement