May-23-2024, 07:43 PM
data = "Some data" filename = "test.txt" try: file = open(filename, 'w+') except: print("Error opening file") else: try: file.write(data) except: print("Error writing to file") finally: file.close()A picture file, .jpg extension. name is the full url assuming. The file is the picture. Then write it like that. It should compile and run. Just learning ideas and concepts. No heart to go through that now. But will get there. Thank for your input.
Programs are like instructions or rules. Learning it gets us closer to a solution. Desired outcome. Computer talk.