#Lecture  
string = "string"
print(string)
integer = 38
print(integer)
boolean = True
if(integer<40):
    print(boolean)
num1 = 38
num2 = 13
num3 = 3
num1 = num3
num3 = num2
num2 = num1
print(num1)
print(num2)
print(num3)
lst = ["basketball", 38, "macandcheese", 13]
print(lst[2])
dict = {
    "x:13",
    "z:15",
    "y,18"
}
print(dict)
import json
jsonstr = "{}"
string
38
True
3
3
13
macandcheese
{'x:13', 'z:15', 'y,18'}
#Homework
class Person:
    def __init__(self, name, age):
        self.name = name
        self.age = age

person1 = Person("p1", 3)
person2 = Person("p2", 38)
person3 = Person("p3", 13)

people_list = [person1, person2, person3]

def print_people(people):
    for i in people:
        print(str(i.name)+ ", " + str(i.age) +" years old")
print_people(people_list)

#Part 2
people_dict = {"p1": 3, "p2": 38, "p3": 13}

def oldest(people_dict):
    oldest_person = max(people_dict, key=people_dict.get)
    print("The oldest person is: "+ str(oldest_person))
oldest(people_dict)
    

p1, 3 years old
p2, 38 years old
p3, 13 years old
The oldest person is: p2