+ 2

Several lists in for header

I found this example on Stack Abuse: import os for root, dirs, files in os.walk("."): for filename in files: print(filename) How this works? How root, dirs and files are assigned simultaneously and what is looped?

25th Apr 2020, 5:41 PM
Uros Zivkovic
Uros Zivkovic - avatar
1 Antwort