11.1 Student becomes the teacher


#1

I dont know whats wrong with my codes....Somebody help me


#2

It looks like you forgot the comma at the end of the brackets for "tests".

This is how mine turned out:

lloyd = {
"name": "Lloyd",
"homework": [],
"quizzes": [],
"tests": [],
}

alice = {
"name": "Alice",
"homework": [],
"quizzes": [],
"tests": [],
}

tyler = {
"name": "Tyler",
"homework": [],
"quizzes": [],
"tests": [],
}


#3

it is just the problem of indentation, after the colon in any of your selection or conditional statement,just press enter and start typing from the very same place,cause the editor windows automatically indents the code,and the start and end of that very block of code is marked by indentation(4 spaces). Rest all is wright with your code


#4

Thank you very much, I think it is caused by the format of my code! I have solved this problem.


#5

Yes, exactly, I have reseted the codes, and type them again, it passed. I still dont know the exactly reason where is wrong, but it worked. Thank you very much!!