fork download
  1. # your code goes here
  2.  
  3. dict = { 'a': {1:'a', 2:'b', 3:'c', 4:'d'},
  4. 'b': {1:'a', 2:'b', 3:'c'}
  5. }
  6. for column_name in dict:
  7. for column_name in temp_dict:
  8. print(temp_dict[column_name][column_name])
Runtime error #stdin #stdout #stderr 0.19s 23448KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 7, in <module>
NameError: name 'temp_dict' is not defined