# 1.
x = [ [5,2,3], [10,8,9] ] 
students = [
     {'first_name':  'Michael', 'last_name' : 'Jordan'},
     {'first_name' : 'John', 'last_name' : 'Rosales'}
]
sports_directory = {
    'basketball' : ['Kobe', 'Jordan', 'James', 'Curry'],
    'soccer' : ['Messi', 'Ronaldo', 'Rooney']
}
z = [ {'x': 10, 'y': 20} ]

# x[1][0] = 15
# print(x)

# students[0]['last_name']='Bryant'
# print(students)

# sports_directory['soccer'][0] ='Andres'
# print(sports_directory)

# z[0]['y'] = 30
# print(z)

students = [
         {'first_name':  'Michael', 'last_name' : 'Jordan'},
         {'first_name' : 'John', 'last_name' : 'Rosales'},
         {'first_name' : 'Mark', 'last_name' : 'Guillen'},
         {'first_name' : 'KB', 'last_name' : 'Tonel'}
    ]

dojo = {
   'locations': ['San Jose', 'Seattle', 'Dallas', 'Chicago', 'Tulsa', 'DC', 'Burbank'],
   'instructors': ['Michael', 'Amy', 'Eduardo', 'Josh', 'Graham', 'Patrick', 'Minh', 'Devon']
}

def printInfo(listName):
    
    for key in listName:
        print(str(len(dojo[key]))+' '+upperCase(key))
        for i in range(len(listName[key])):
            print(listName[key][i])
        print('')


def upperCase(text):
    newStr = ""
    for i in text:
        i = ord(i)-32
        newStr += chr(i)
        
    return newStr


def interateDictionary(listName):
    for i in listName:
        print('first_name - '+str(i['first_name'])+', last_name - '+str(i['last_name']))

def interateDictionaryByKey(key, listName):
    print('')
    for i in listName:
        print(i[key])
    print('')

printInfo(dojo)
# interateDictionary(students)
# interateDictionaryByKey('first_name', students)
# interateDictionaryByKey('last_name', students)
354631660f2fb5ddb9b3834c98bc8f2058974b53
<mask token>


def upperCase(text):
    newStr = ''
    for i in text:
        i = ord(i) - 32
        newStr += chr(i)
    return newStr


<mask token>

<mask token>


def printInfo(listName):
    for key in listName:
        print(str(len(dojo[key])) + ' ' + upperCase(key))
        for i in range(len(listName[key])):
            print(listName[key][i])
        print('')


def upperCase(text):
    newStr = ''
    for i in text:
        i = ord(i) - 32
        newStr += chr(i)
    return newStr


def interateDictionary(listName):
    for i in listName:
        print('first_name - ' + str(i['first_name']) + ', last_name - ' +
            str(i['last_name']))


def interateDictionaryByKey(key, listName):
    print('')
    for i in listName:
        print(i[key])
    print('')


<mask token>

<mask token>


def printInfo(listName):
    for key in listName:
        print(str(len(dojo[key])) + ' ' + upperCase(key))
        for i in range(len(listName[key])):
            print(listName[key][i])
        print('')


def upperCase(text):
    newStr = ''
    for i in text:
        i = ord(i) - 32
        newStr += chr(i)
    return newStr


def interateDictionary(listName):
    for i in listName:
        print('first_name - ' + str(i['first_name']) + ', last_name - ' +
            str(i['last_name']))


def interateDictionaryByKey(key, listName):
    print('')
    for i in listName:
        print(i[key])
    print('')


printInfo(dojo)

x = [[5, 2, 3], [10, 8, 9]]
students = [{'first_name': 'Michael', 'last_name': 'Jordan'}, {'first_name':
    'John', 'last_name': 'Rosales'}]
sports_directory = {'basketball': ['Kobe', 'Jordan', 'James', 'Curry'],
    'soccer': ['Messi', 'Ronaldo', 'Rooney']}
z = [{'x': 10, 'y': 20}]
students = [{'first_name': 'Michael', 'last_name': 'Jordan'}, {'first_name':
    'John', 'last_name': 'Rosales'}, {'first_name': 'Mark', 'last_name':
    'Guillen'}, {'first_name': 'KB', 'last_name': 'Tonel'}]
dojo = {'locations': ['San Jose', 'Seattle', 'Dallas', 'Chicago', 'Tulsa',
    'DC', 'Burbank'], 'instructors': ['Michael', 'Amy', 'Eduardo', 'Josh',
    'Graham', 'Patrick', 'Minh', 'Devon']}


def printInfo(listName):
    for key in listName:
        print(str(len(dojo[key])) + ' ' + upperCase(key))
        for i in range(len(listName[key])):
            print(listName[key][i])
        print('')


def upperCase(text):
    newStr = ''
    for i in text:
        i = ord(i) - 32
        newStr += chr(i)
    return newStr


def interateDictionary(listName):
    for i in listName:
        print('first_name - ' + str(i['first_name']) + ', last_name - ' +
            str(i['last_name']))


def interateDictionaryByKey(key, listName):
    print('')
    for i in listName:
        print(i[key])
    print('')


printInfo(dojo)

# 1.
x = [ [5,2,3], [10,8,9] ] 
students = [
     {'first_name':  'Michael', 'last_name' : 'Jordan'},
     {'first_name' : 'John', 'last_name' : 'Rosales'}
]
sports_directory = {
    'basketball' : ['Kobe', 'Jordan', 'James', 'Curry'],
    'soccer' : ['Messi', 'Ronaldo', 'Rooney']
}
z = [ {'x': 10, 'y': 20} ]

# x[1][0] = 15
# print(x)

# students[0]['last_name']='Bryant'
# print(students)

# sports_directory['soccer'][0] ='Andres'
# print(sports_directory)

# z[0]['y'] = 30
# print(z)

students = [
         {'first_name':  'Michael', 'last_name' : 'Jordan'},
         {'first_name' : 'John', 'last_name' : 'Rosales'},
         {'first_name' : 'Mark', 'last_name' : 'Guillen'},
         {'first_name' : 'KB', 'last_name' : 'Tonel'}
    ]

dojo = {
   'locations': ['San Jose', 'Seattle', 'Dallas', 'Chicago', 'Tulsa', 'DC', 'Burbank'],
   'instructors': ['Michael', 'Amy', 'Eduardo', 'Josh', 'Graham', 'Patrick', 'Minh', 'Devon']
}

def printInfo(listName):
    
    for key in listName:
        print(str(len(dojo[key]))+' '+upperCase(key))
        for i in range(len(listName[key])):
            print(listName[key][i])
        print('')


def upperCase(text):
    newStr = ""
    for i in text:
        i = ord(i)-32
        newStr += chr(i)
        
    return newStr


def interateDictionary(listName):
    for i in listName:
        print('first_name - '+str(i['first_name'])+', last_name - '+str(i['last_name']))

def interateDictionaryByKey(key, listName):
    print('')
    for i in listName:
        print(i[key])
    print('')

printInfo(dojo)
# interateDictionary(students)
# interateDictionaryByKey('first_name', students)
# interateDictionaryByKey('last_name', students)