CMYK

Report a typo

You have a list of strings color_list and you have implemented the following code to write it to the file CMYK.txt:

color_list = ['cyan', 'magenta', 'yellow', 'key color']

cmyk_file = open('CMYK.txt', 'w', encoding='utf-8')
cmyk_file.writelines(color_list)
cmyk_file.close()

What will be the contents of the file CMYK.txt?

Enter a short text
___

Create a free account to access the full topic