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 -- https://mail.python.org/mailman/listinfo/python-list