listdir

breamoreboy at gmail.com breamoreboy at gmail.com
Mon Sep 5 13:22:12 EDT 2016


On Monday, September 5, 2016 at 4:34:45 PM UTC+1, Rustom Mody wrote:
> So what do you get when you replace the if-else with a simple: print(file)  ?
> 
> [And BTW dont use the variable name “file” its um sacred]

Only in Python 2, it's gone from the built-ins in Python 3 https://docs.python.org/3/whatsnew/3.0.html#builtins

Kindest regards.

Mark Lawrence



More information about the Python-list mailing list