with open(file_path+file_name*, 'wb') as a: a.write(content) # *example: r"C:UsersuserDesktophello_world.docx". # 'hello_world' DOENT EXIST at the moment, python will automatically create it for us