diff options
author | László Király <laszlokiraly@users.noreply.github.com> | 2019-10-04 10:25:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-04 10:25:57 +0200 |
commit | 898d9d43a3f70a55882542dcc9e907f345ab374f (patch) | |
tree | e3d62212a5d540a9d4d8c307069abc951809f860 /ko-kr/python-kr.html.markdown | |
parent | 790bedf4291c1dfee059270bc995878764754ab5 (diff) |
don't overwrite list
problem:
assigning a list of animals to the list variable overwrites the list function, so that later in line 531 the list function is not available and raises a Type Error:
```
In [133]: list(filled_dict.keys())
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-133-a2c520b90051> in <module>
----> 1 list(filled_dict.keys())
TypeError: 'list' object is not callable
```
solution:
use another variable name instead of list
Diffstat (limited to 'ko-kr/python-kr.html.markdown')
0 files changed, 0 insertions, 0 deletions