Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6
16th Feb 2019, 3:53 PM
Tuan Pham
Tuan Pham - avatar
+ 5
Change line 38 to students = [lloyd, alice, tyler] Explaination. You have inserted names as strings to the table. So in the for loop you are trying to access properties of a string, not the dictionary. Just removing the quotes will work
16th Feb 2019, 3:54 PM
Seniru
Seniru - avatar
+ 3
Try this bro: students = [lloyd, alice, tyler] We call a variable without double quote!
19th Feb 2019, 5:41 PM
Thống Nguyễn
Thống Nguyễn - avatar