Mojibake

Report a typo

Mary had a file some_text.txt that she wanted to open using this code:

file = open('some_text.txt', 'r', encoding='cp1251')

When she tried to print the content of the file, she got this:

цианмаджентажелтыйключевой цвет

Which parameter of the open() function did she specify incorrectly? Below, write the parameter, for example, name or mode.

Enter a short text
___

Create a free account to access the full topic