U
U
ultra-hackerXXX2021-02-20 10:22:21
Python
ultra-hackerXXX, 2021-02-20 10:22:21

How to resolve AttributeError error in python?

AttributeError: 'list' object has no attribute 'read'

Process finished with exit code 1

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dr. Bacon, 2021-02-20
@bacon

1. learn a language from something simpler than writing bots
2. always show the full traceback of the error

Z
zexer, 2021-02-20
@zexer

You've created an object of class list, like something like a = [1,2,3]
And then you're trying to do something like this a.read().
There is no such method in lists, so it throws an error.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question