<gh_stars>0
import os

os.chdir(os.path.dirname(__file__))

student_dict = {
    "student": ["Angela", "James", "Lily"], 
    "score": [56, 76, 98]
}

#Looping through dictionaries:
for (key, value) in student_dict.items():
    #Access key and value
    pass

import pandas
student_data_frame = pandas.DataFrame(student_dict)

#Loop through rows of a data frame
for (index, row) in student_data_frame.iterrows():
    #Access index and row
    #Access row.student or row.score
    pass

# Keyword Method with iterrows()
# {new_key:new_value for (index, row) in df.iterrows()}

#TODO 1. Create a dictionary in this format:
{"A": "Alfa", "B": "Bravo"}

#TODO 2. Create a list of the phonetic code words from a word that the user inputs.

alphabet = pandas.read_csv("nato_phonetic_alphabet.csv")

print(alphabet.code.to_list())

alphabet_dict = {word[0].upper():word for word in alphabet.code.to_list()}

alphabet_dict2 = {row.letter:row.code for (index, row) in alphabet.iterrows()}


word = input("Enter A Word: ").upper()

for letter in word:
    print(alphabet_dict2[letter])



    
import os

os.chdir(os.path.dirname(__file__))

student_dict = {
    "student": ["Angela", "James", "Lily"], 
    "score": [56, 76, 98]
}

#Looping through dictionaries:
for (key, value) in student_dict.items():
    #Access key and value
    pass

import pandas
student_data_frame = pandas.DataFrame(student_dict)

#Loop through rows of a data frame
for (index, row) in student_data_frame.iterrows():
    #Access index and row
    #Access row.student or row.score
    pass

# Keyword Method with iterrows()
# {new_key:new_value for (index, row) in df.iterrows()}

#TODO 1. Create a dictionary in this format:
{"A": "Alfa", "B": "Bravo"}

#TODO 2. Create a list of the phonetic code words from a word that the user inputs.

alphabet = pandas.read_csv("nato_phonetic_alphabet.csv")

print(alphabet.code.to_list())

alphabet_dict = {word[0].upper():word for word in alphabet.code.to_list()}

alphabet_dict2 = {row.letter:row.code for (index, row) in alphabet.iterrows()}


word = input("Enter A Word: ").upper()

for letter in word:
    print(alphabet_dict2[letter])
#Looping through dictionaries: #Access key and value #Loop through rows of a data frame #Access index and row #Access row.student or row.score # Keyword Method with iterrows() # {new_key:new_value for (index, row) in df.iterrows()} #TODO 1. Create a dictionary in this format: #TODO 2. Create a list of the phonetic code words from a word that the user inputs.