# Create new Dictionary
person = {
    "first_name": "Nick Lyga",
    "age": 21
}

print(person)

# Update key/Values
person["first_name"] ="Nick"
person["last_name"] = "Lyga"
print(person)

# Loop over dictionary (items())
for key,value in person.items():
    print("{}: {}".format(key, value))

# Methods, get(), values(), keys()
print(person.keys())

person.update({
    "first_name": "bob",
    "age": 5
})
print(person)


# delete del
del person["first_name"]
print(person)

# List of Dictionaires
people = []
person = {
    "name": "Nick",
    "age": 21
}
people.append(person)
print(people)
person2 = {
    "name": "billy",
    "age": 10
}
people.append(person2)
print(people)

print(people[1]["name"])


981acade22ad253ca7687ae19bbfd709e688755f
<mask token>

<mask token>
print(person)
<mask token>
print(person)
for key, value in person.items():
    print('{}: {}'.format(key, value))
print(person.keys())
person.update({'first_name': 'bob', 'age': 5})
print(person)
del person['first_name']
print(person)
<mask token>
people.append(person)
print(people)
<mask token>
people.append(person2)
print(people)
print(people[1]['name'])

person = {'first_name': 'Nick Lyga', 'age': 21}
print(person)
person['first_name'] = 'Nick'
person['last_name'] = 'Lyga'
print(person)
for key, value in person.items():
    print('{}: {}'.format(key, value))
print(person.keys())
person.update({'first_name': 'bob', 'age': 5})
print(person)
del person['first_name']
print(person)
people = []
person = {'name': 'Nick', 'age': 21}
people.append(person)
print(people)
person2 = {'name': 'billy', 'age': 10}
people.append(person2)
print(people)
print(people[1]['name'])

# Create new Dictionary
person = {
    "first_name": "Nick Lyga",
    "age": 21
}

print(person)

# Update key/Values
person["first_name"] ="Nick"
person["last_name"] = "Lyga"
print(person)

# Loop over dictionary (items())
for key,value in person.items():
    print("{}: {}".format(key, value))

# Methods, get(), values(), keys()
print(person.keys())

person.update({
    "first_name": "bob",
    "age": 5
})
print(person)


# delete del
del person["first_name"]
print(person)

# List of Dictionaires
people = []
person = {
    "name": "Nick",
    "age": 21
}
people.append(person)
print(people)
person2 = {
    "name": "billy",
    "age": 10
}
people.append(person2)
print(people)

print(people[1]["name"])

