# Error message --\> AttributeError: 'list' object has no attribute 'draw'

**URL:** https://discourse.psychopy.org/t/error-message-attributeerror-list-object-has-no-attribute-draw/20539
**Category:** Coding
**Created:** [February 16, 2021, 4:37pm UTC](https://discourse.psychopy.org/t/error-message-attributeerror-list-object-has-no-attribute-draw/20539 "2021-02-16T16:37:43Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Michael](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/michael/32/16_2.png) [@Michael](https://discourse.psychopy.org/u/Michael)
#### Post date: [February 16, 2021, 9:33pm UTC](https://discourse.psychopy.org/t/error-message-attributeerror-list-object-has-no-attribute-draw/20539/2 "2021-02-16T21:33:57Z")

</div>

> [@Please surround python code with backticks](https://discourse.psychopy.org/t/please-surround-python-code-with-backticks/1775):
>
> When you include python code on this forum please put triple “backticks” like this ``` on the line before and the line after your code. If you’ve done it correctly then your code will appear in a grey box with correct indentation like this (check the preview of your post on the right hand side before posting it) and other people will be better able to work out what might be right/wrong with your code. if myVal==True: break If you’ve already posted something that didn’t follow this rule th…

---

_[View the full topic](https://discourse.psychopy.org/t/error-message-attributeerror-list-object-has-no-attribute-draw/20539)._
