Python Introducing Lists Meet Lists Deletion

so I used the variable matts_lunch instead of craigs_lunch but I have double checked and all my typing and syntax

but I get a unicode error:

"

matts_lunch = "\N(TACO)"
File "<stdin>", line 1
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in p osition 0-1: malformed \N character escape
matts_lunch = "\n(TACO)"
matts_lunch
'\n(TACO)'

"

not sure whats going on or if its an Apache side server error or something.

Hello, it appears you are using () not {}. Try: matts_lunch = "\N{TACO}"

2 Answers

Dave StSomeWhere
Dave StSomeWhere
19,809 Points

I did the same thing and tried that in the console right after seeing it - try using curly braces instead of parenthesis;

b = "\N{TROPICAL DRINK}"
b

:tropical_drink:

Marcus Grant
PRO
Marcus Grant
Pro Student 2,546 Points

It's becuase you're using normal brackets () and not curly brackets {} in your call.

Give it a go and see if it returns correctly. (Don't forget the capital N)