STUDENT BECOMES THE TEACHER-Lesson Number One-1/9(Can't fix syntax error)


#1


Followed everything in the instructions but I don’t understand why it’s giving me a syntax error. Also says “Did you create a dictionary named lloyd? Your code threw a “global name ‘lloyd’ is not defined” error.” and i have no clue what that means :confused:
Any help is appreciated, thanks :slight_smile:







#2

key value pairs are separated by comma’s (,), they are all misisng in your case?


#3

where should i put these commas?


#4

between the key value pairs.


#5

i’m sorry but what are the key value pairs?


#6

from:

https://www.tutorialspoint.com/python/python_dictionary.htm

Each key is separated from its value by a colon (:)

key and values are also explained in the lesson, they are the fundamentals of dictionaries

If you work with dictionaries, i make 2 assumptions:

you know the basic of dictonaries, so you know key and values
you know the basic of dictonaries, so you are capable of researching key and values if you forgot. You know the dictonaries, so reading some documentation should be possible

I help on the forum, to work together with the learner to come to a solution.


#7

I see :smiley: thanks man


#8

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.