how do you know if open failed?



f = open('myfile.bin', 'rb')

How do I know if there was an error opening my file?

.