Sep-22-2020, 01:57 PM
File structure
File structure
|
(Sep-22-2020, 01:57 PM)macfanpl Wrote: Easier said than done...... just to illustrate spam = dict() print(spam, type(spam)) # spam is empty dict eggs = dict(zip([1, 2], ['a', 'b'])) # {1: 'a', 2: 'b'} print(eggs) dict = 'something' eggs = dict(zip([1, 2], ['a', 'b'])) print(eggs) even if you don't use it, it may be used by a third-party package you do and then it will be a nightmare to debug.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link Create MCV example Debug small programs
Sep-22-2020, 07:50 PM
Plus,
dict is likely not a particularly meaningful name for a variable anyway.
|
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Hard disk structure like a file selection dialog | malonn | 2 | 1,751 |
Aug-09-2023, 09:14 PM Last Post: malonn |
|
Yahoo_fin, Pandas: how to convert data table structure in csv file | detlefschmitt | 14 | 10,758 |
Feb-15-2021, 12:58 PM Last Post: detlefschmitt |
|
File system representation in a data structure | Alfalfa | 1 | 2,769 |
Dec-18-2019, 01:56 AM Last Post: Alfalfa |
Users browsing this thread: 1 Guest(s)