What is the meaning of AttributeError: 'str' object has no attribute 'X'?


#1

What is the meaning of AttributeError: 'str' object has no attribute 'keys' exactly in the code like following?


#2

what exercise are you on?


#3

I write that myself and want to be familiar with different errors to eradicate that. I want to know what type is that and what is the cause of that.


#4

What the error was saying is that on this line there is no variable defined as keys that is callable or printable.


#5

Why should I have this error? I used i.keys() which is a method and I want print that!


#6

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