Question: what is wb in file handling?
Answer: The wb indicates that the file is opened for writing in binary mode. ... Text mode should therefore be used when writing text files (whether using plain text or a text-based format like CSV), while binary mode must be used when writing non-text files like images.