Skip to content
Snippets Groups Projects
Commit 796a40fc authored by LOUIS TYRRELL OLIPHANT's avatar LOUIS TYRRELL OLIPHANT
Browse files

updated project.py in lec 12

parent 8bcc655f
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ def get_lecture(idx): ...@@ -22,7 +22,7 @@ def get_lecture(idx):
def get_section(idx): def get_section(idx):
"""get_lecture(idx) returns the section of the student in row idx""" """get_lecture(idx) returns the section of the student in row idx"""
return __student__[int(idx)]['section'] return __student__[int(idx)]['Section']
def get_age(idx): def get_age(idx):
...@@ -32,12 +32,12 @@ def get_age(idx): ...@@ -32,12 +32,12 @@ def get_age(idx):
def get_primary_major(idx): def get_primary_major(idx):
"""get_primary_major(idx) returns the primary major of the student in row idx""" """get_primary_major(idx) returns the primary major of the student in row idx"""
return __student__[int(idx)]['Primary major'] return __student__[int(idx)]['Primary Major']
def get_other_majors(idx): def get_other_majors(idx):
"""get_other_majors(idx) returns the secondary major of the student in row idx""" """get_other_majors(idx) returns the secondary major of the student in row idx"""
return __student__[int(idx)]['Other majors'] return __student__[int(idx)]['Other Majors']
def get_zip_code(idx): def get_zip_code(idx):
...@@ -47,11 +47,11 @@ def get_zip_code(idx): ...@@ -47,11 +47,11 @@ def get_zip_code(idx):
def get_pizza_topping(idx): def get_pizza_topping(idx):
"""get_pizza_topping(idx) returns the preferred pizza toppings of the student in row idx""" """get_pizza_topping(idx) returns the preferred pizza toppings of the student in row idx"""
return __student__[int(idx)]['Pizza topping'] return __student__[int(idx)]['Pizza Topping']
def get_cats_or_dogs(idx): def get_cats_or_dogs(idx):
"""get_cats_or_dogs(idx) returns whether student in row idx likes cats or dogs""" """get_cats_or_dogs(idx) returns whether student in row idx likes cats or dogs"""
return __student__[int(idx)]['Cats or dogs'] return __student__[int(idx)]['Cats or Dogs']
def get_runner(idx): def get_runner(idx):
"""get_runner(idx) returns whether student in row idx is a runner""" """get_runner(idx) returns whether student in row idx is a runner"""
...@@ -59,7 +59,7 @@ def get_runner(idx): ...@@ -59,7 +59,7 @@ def get_runner(idx):
def get_sleep_habit(idx): def get_sleep_habit(idx):
"""get_sleep_habit(idx) returns the sleep habit of the student in row idx""" """get_sleep_habit(idx) returns the sleep habit of the student in row idx"""
return __student__[int(idx)]['Sleep habit'] return __student__[int(idx)]['Sleep Habit']
def get_procrastinator(idx): def get_procrastinator(idx):
"""get_procrastinator(idx) returns whether student in row idx is a procrastinator""" """get_procrastinator(idx) returns whether student in row idx is a procrastinator"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment