The open function explained – Yasoob Khalid

This is a guest post by Philipp. open opens a file. Pretty simple, eh? Most of the time, we see it being used like this: f = open(‘photo.jpg’, ‘r+’) jpgdata = f.read() f.close() The reason I am writing this article is that most of the time, I see open used like this: There are three …

The open function explained – Yasoob Khalid Read More »