N
N
Nub_and_nub2018-11-12 18:04:11
Python
Nub_and_nub, 2018-11-12 18:04:11

I don't understand my error myself error File "solution.py", line 2 SyntaxError: Non-UTF-8 code starting with '\xea' in file solution.py on line 2,?

text = input()
if 'cat' in text:
print('MEOW')
else:
print('GAW')

Answer the question

In order to leave comments, you need to log in

3 answer(s)
X
xoo, 2018-11-12
@Nub_and_nub

Write# -*- coding: utf-8 -*-

S
Sergey Gornostaev, 2018-11-12
@sergey-gornostaev

Better yet, use Python 3 already.

V
Valentine, 2018-11-13
@val_gr

Open the file with notepad, then File-Save As... and in the lower right corner, instead of any option standing there, select UTF-8.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question