Digital Divide Homework
Homework Hacks and Popcorn Hacks
Popcorn Hacks
Popcorn Hack 1
Multiple Choice Question answers selected: B and D for additional accessibility for all.
Popcorn Hack 2:
In order to fix the digital divide, countries can work to increase infrastructure and accessibility of technology for all. However, on a smaller scale, students can reduce the digital divide within our communities by volunteering for local organizations to build and donate computers, hosting digital literacy classes in local libraries, and more. Each of these strategies is already being implemented to a small degree, but they can be made more effective through extra emphasis on digital learning curriculum in areas with low technological prevalence (like poorer neighborhoods or senior homes).
Homework Hack
DOWNLOAD AND COPY THIS NOTEBOOK TO YOUR PERSONAL REPOSITORY
Download and extract this dataset from kaggle and move it into the same folder as this notebook.
All the preprocessing has been done for you, and the unneeded columns have been dropped. Your task is to loop through the Rate (WB) column and print the country name associated with the percentage, the percentage, and “doing great” if the percentage is above 70% or “needs improvement” if not above 70%.
For example, 18.4% of people in Afghanistan have access to the internet (According to data from the World Bank), so you would print “Afghanistan: 18.4: Needs improvement”
On the other hand, Albania has 83.1% internet access so you would print “Albania: 83.1%: doing great”
import pandas as pd
data = pd.read_csv("internet_users.csv").drop(columns=['Notes', 'Year.2', 'Users (CIA)', 'Rate (ITU)', 'Year.1']) # Drop extra columns: we will not be using these
data_cleaned = data.dropna() # Drop rows with NaN (aka blank) values
print(data_cleaned.head()) # Display the first few rows of the cleaned data
# print(len(data)) # Check num of rows before removing blank rows
# print(len(data_cleaned)) # Check num of rows after removing blank rows
Location Rate (WB) Year
0 World 67.4 2023.0
1 Afghanistan 18.4 2020.0
2 Albania 83.1 2023.0
3 Algeria 71.2 2022.0
5 Andorra 94.5 2022.0
y = data_cleaned['Rate (WB)'] # Take Percentage of the population using the internet from World Bank data in dataset
name = data_cleaned['Location'] # take contry name from WB data in dataset
# [INSERT YOUR CODE HERE]
from tabulate import tabulate
data.columns = data.columns.str.strip()
table_data = []
# Loop through each row and process the data
for _, row in data.iterrows():
country = row["Location"]
rate = row["Rate (WB)"]
status = "Doing Great" if rate > 70 else "Needs Improvement"
table_data.append([country, f"{rate}%", status])
headers = ["Country", "Internet Access Rate", "Status"]
print(tabulate(table_data, headers=headers, tablefmt="fancy_grid"))
╒═══════════════════════════════════════════════╤════════════════════════╤═══════════════════╕
│ Country │ Internet Access Rate │ Status │
╞═══════════════════════════════════════════════╪════════════════════════╪═══════════════════╡
│ World │ 67.4% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Afghanistan │ 18.4% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Albania │ 83.1% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Algeria │ 71.2% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ American Samoa │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Andorra │ 94.5% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Angola │ 39.3% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Anguilla │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Antigua and Barbuda │ 91.4% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Argentina │ 89.2% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Armenia │ 78.6% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Aruba │ 97.2% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Australia │ 95.0% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Austria │ 95.3% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Azerbaijan │ 88.0% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Bahamas │ 94.4% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Bahrain │ 100.0% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Bangladesh │ 44.5% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Barbados │ 76.2% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Belarus │ 91.5% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Belgium │ 94.6% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Belize │ 70.4% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Benin │ 33.8% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Bermuda │ 98.4% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Bhutan │ 86.8% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Bolivia │ 73.3% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Bosnia and Herzegovina │ 83.4% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Botswana │ 77.3% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Brazil │ 84.2% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ British Virgin Islands │ 77.7% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Brunei │ 99.0% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Bulgaria │ 80.4% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Burkina Faso │ 19.9% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Burundi │ 11.3% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Cambodia │ 56.7% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Cameroon │ 43.9% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Canada │ 94.6% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Cape Verde │ 72.1% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Cayman Islands │ 81.1% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Central African Republic │ 10.6% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Chad │ 12.2% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Chile │ 94.1% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ China │ 77.5% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Christmas Island │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Cocos (Keeling) Islands │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Colombia │ 73.0% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Comoros │ 27.3% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Cook Islands │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Costa Rica │ 85.1% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Croatia │ 83.2% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Cuba │ 73.2% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Curacao │ 68.1% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Cyprus │ 91.2% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Czech Republic │ 86.0% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Democratic Republic of the Congo │ 27.2% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Denmark │ 98.9% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Djibouti │ 65.0% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Dominica │ 83.4% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Dominican Republic │ 85.2% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ East Timor │ 40.8% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Ecuador │ 72.7% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Egypt │ 72.2% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ El Salvador │ 62.9% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Equatorial Guinea │ 66.8% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Eritrea │ 26.6% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Estonia │ 93.2% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Eswatini │ 58.3% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Ethiopia │ 19.4% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Falkland Islands │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Faroe Islands │ 97.6% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Fiji │ 85.2% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Finland │ 93.5% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ France │ 86.8% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ French Guiana │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ French Polynesia │ 72.7% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Gabon │ 73.7% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Gambia │ 54.2% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Georgia │ 81.9% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Germany │ 92.5% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Ghana │ 69.8% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Gibraltar │ 94.4% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Greece │ 85.0% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Greenland │ 69.5% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Grenada │ 79.9% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Guadeloupe │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Guam │ 80.5% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Guatemala │ 54.4% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Guernsey │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Guinea │ 33.9% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Guinea-Bissau │ 31.6% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Guyana │ 85.3% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Haiti │ 39.3% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Honduras │ 59.7% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Hong Kong │ 95.6% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Hungary │ 91.5% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Iceland │ 99.9% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ India │ 43.4% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Indonesia │ 69.2% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Iran │ 81.7% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Iraq │ 78.7% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Ireland │ 95.6% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Israel │ 91.9% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Italy │ 87.0% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Ivory Coast │ 43.8% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Jamaica │ 85.1% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Japan │ 93.2% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Jersey │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Jordan │ 90.5% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Kazakhstan │ 92.9% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Kenya │ 40.8% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Kiribati │ 54.4% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Kosovo │ 89.4% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Kuwait │ 99.8% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Kyrgyzstan │ 79.8% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Laos │ 66.2% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Latvia │ 92.2% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Lebanon │ 90.1% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Lesotho │ 47.0% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Liberia │ 30.1% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Libya │ 88.4% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Liechtenstein │ 99.6% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Lithuania │ 88.5% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Luxembourg │ 99.4% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Macao │ 89.8% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Madagascar │ 20.6% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Malawi │ 27.7% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Malaysia │ 97.7% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Maldives │ 85.2% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Mali │ 33.1% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Malta │ 91.9% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Marshall Islands │ 73.2% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Martinique │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Mauritania │ 44.4% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Mauritius │ 75.5% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Mayotte │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Mexico │ 81.2% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Micronesia │ 40.5% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Moldova │ 71.0% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Monaco │ 98.6% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Mongolia │ 83.9% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Montenegro │ 88.2% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Montserrat │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Morocco │ 89.9% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Mozambique │ 21.2% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Myanmar │ 48.1% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Namibia │ 62.2% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Nauru │ 83.3% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Nepal │ 49.6% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Netherlands │ 97.0% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ New Caledonia │ 82.0% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ New Zealand │ 95.7% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Nicaragua │ 61.1% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Niger │ 16.9% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Nigeria │ 35.5% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Niue │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Norfolk Island │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ North Macedonia │ 84.2% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Northern Mariana Islands │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Norway │ 99.0% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Oman │ 97.9% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Pakistan │ 33.0% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Palau │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Palestine │ 88.7% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Panama │ 73.6% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Papua New Guinea │ 27.0% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Paraguay │ 78.1% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Peru │ 74.7% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Philippines │ 75.2% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Pitcairn Islands │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Poland │ 86.9% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Portugal │ 85.8% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Puerto Rico │ 87.3% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Qatar │ 100.0% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Republic of the Congo │ 36.3% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Réunion │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Romania │ 89.2% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Russia │ 92.3% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Rwanda │ 34.4% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Saint Barthelemy │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Saint Helena, Ascension, and Tristan da Cunha │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Saint Kitts and Nevis │ 76.5% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Saint Lucia │ 75.8% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Saint Martin │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Saint Pierre and Miquelon │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Saint Vincent and the Grenadines │ 78.7% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Samoa │ 76.3% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ San Marino │ 85.1% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Sao Tome and Principe │ 57.0% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Saudi Arabia │ 100.0% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Senegal │ 60.0% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Serbia │ 85.4% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Seychelles │ 86.7% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Sierra Leone │ 30.4% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Singapore │ 96.9% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Sint Maarten │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Slovakia │ 89.9% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Slovenia │ 90.4% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Solomon Islands │ 47.3% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Somalia │ 27.6% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ South Africa │ 74.7% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ South Korea │ 97.6% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ South Sudan │ 12.1% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Spain │ 95.5% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Sri Lanka │ 50.1% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Sudan │ 28.7% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Suriname │ 75.8% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Sweden │ 95.7% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Switzerland │ 97.3% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Syria │ 35.8% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Taiwan │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Tajikistan │ 36.1% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Tanzania │ 31.9% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Thailand │ 89.5% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Togo │ 37.6% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Tokelau │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Tonga │ 66.7% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Trinidad and Tobago │ 80.0% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Tunisia │ 73.8% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Turkey │ 86.0% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Turkmenistan │ 21.3% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Turks and Caicos Islands │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Tuvalu │ 82.3% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Uganda │ 10.0% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Ukraine │ 79.2% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ United Arab Emirates │ 100.0% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ United Kingdom │ 95.3% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ United States │ 97.1% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Uruguay │ 89.9% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ US Virgin Islands │ 64.4% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Uzbekistan │ 89.0% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Vanuatu │ 69.9% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Vatican City │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Venezuela │ 61.6% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Vietnam │ 78.6% │ Doing Great │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Wallis and Futuna │ nan% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Yemen │ 26.7% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Zambia │ 31.2% │ Needs Improvement │
├───────────────────────────────────────────────┼────────────────────────┼───────────────────┤
│ Zimbabwe │ 32.6% │ Needs Improvement │
╘═══════════════════════════════════════════════╧════════════════════════╧═══════════════════╛
What I added
I added code to iterate through each row in the CSV and print the country, percentage, and its success or lack thereof. This code works by using conditional statements to identify if the rate of a country is above or below 70% and print the success statement accordingly. Additionally, I formatted the outputted data into a table for easier viewing using tabulate
.