Buggy Question??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Buggy Question???

How does this question have an answer?? It is a Python challenge question. dict1 = {'a':1,'b':2,'c':3} dict2 = {'a':4,'b':5,'c':6} table1 = [dict1,dict2] for row in table1: row['a'] = str(row['a']) table1.append(row) print(type(table1['b')) Am I missing something?

17th Jun 2020, 10:18 AM
Tomiwa Joseph
Tomiwa Joseph - avatar
1 Answer
+ 2
No, youre right to look at this weird. It has the wrong inside closing bracket in the print statement. Plus, its trying to call a key from a list. It'll throw errors. Nice find!
17th Jun 2020, 10:27 AM
Slick
Slick - avatar