Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #102146 > unrolled thread
| Started by | Gary Roach <gary719_list1@verizon.net> |
|---|---|
| First post | 2016-01-26 10:48 -0800 |
| Last post | 2016-01-26 10:48 -0800 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
Duplicate Output Gary Roach <gary719_list1@verizon.net> - 2016-01-26 10:48 -0800
| From | Gary Roach <gary719_list1@verizon.net> |
|---|---|
| Date | 2016-01-26 10:48 -0800 |
| Subject | Duplicate Output |
| Message-ID | <mailman.28.1453883934.2338.python-list@python.org> |
Hi
Debian stretch OS
KDE Desktop
Code written with Kate
Run in command line with $python getFileNames.py
Code:
from os import walk
import subprocess
f = []
x = ""
for (dirpath, dirnames, filenames) in walk('.'):
print(filenames)
This prints [<file list>][<duplicate file list>]
What am I doing wrong or how do I remove the duplicate list.
Gary R.
Back to top | Article view | comp.lang.python
csiph-web