I need some help with 3/9 URGENTLY


#1

I am stuck with is this code:
lloyd = {
"name": "Lloyd",
"homework": [90.0, 97.0, 75.0, 92.0],
"quizzes": [88.0, 40.0, 94.0],
"tests": [75.0, 90.0]
}
alice = {
"name": "Alice",
"homework": [100.0, 92.0, 98.0, 100.0],
"quizzes": [82.0, 83.0, 91.0],
"tests": [89.0, 97.0]
}
tyler = {
"name": "Tyler",
"homework": [0.0, 87.0, 75.0, 22.0],
"quizzes": [0.0, 75.0, 78.0],
"tests": [100.0, 100.0]
}
students = ["lloyd", "alice", "tyler"],
my_list = ["students"]

Is this right or not, please let me know ASAP, THANKS


#2

The students list should contain the dicitionaries, but your list includes the names of the dictionaries as strings.


#3

All they want you to do is create a list of all the student you have so far that is alice , tyler and lloyd and since those students are objects there is no need for the "" surrounding them

students = [lloyd, alice , tyler ]

#4

Here's a little trick:

Whenever you would like to paste code, since this forum supports Markdown you can use three backticks before and after your code block like so:

```
def my_func(x):
my_var = 0
if x > my_var:
sum = my_var + x
else:
print "Odelay!"
return sum
```

and it will retain proper indentation and even have nifty syntax highlighting:

def my_func(x):
    my_var = 0
    if x > my_var:
      sum = my_var + x
    else:
      print "Odelay!"
    return sum

Oh and please, breath slowly and remain calm. Everything's gonna be alright. Feeling chest pain and having difficulty breathing can be considered an emergency. Not understanding a free python introduction exercise just can't be... :wink: