My code
with open('text.txt') as f:
text = f.read()
My Problem
IDK what is that, this project is one of the first my projects, that work with files. Pls help me.
with open('text.txt') as f:
text = f.read()
IDK what is that, this project is one of the first my projects, that work with files. Pls help me.
Try specifying an encoding type for the file such as:
with open('text.txt', encoding = 'utf-8') as f:
text = f.read()