ModernPython

Do you know the correct way to open a file to read/write without overwriting or throwing an error if the file hasn't been created yet? youtube.com/shorts/XM5qGRKKRk...

2 years ago | [YT] | 1



@ModernPython

Only 25% got this one right: the correct answer is a+, r+ will throw an error if the file is missing.

2 years ago | 0