Предмет: Информатика, автор: viktoriaeremina693

Есть код, сначала была ошибка SyntaxError: Non-ASCII character '\xd0' in file python.py on line 1, but no encoding declared, поставила кодировку UTF-8 и теперь ошибка: Traceback (most recent call last):
File "python.py", line 1, in
num = input ("Введите ваше имя: ")
File " ", line 1, in
NameError: name 'Test' is not defined
Код:
#!/usr/bin/python
# -*- utf-8 -*-
num = input ("Введите ваше имя: ")

if num == "Test":
print ("True")
print ("All is okay")
Помогите разобраться плиз

Ответы

Автор ответа: settom
1

Объяснение:

Перед print отсутствует табуляция.

Должно быть так как на скрине

Приложения:

viktoriaeremina693: Спасибо
Похожие вопросы
Предмет: Русский язык, автор: Милана0071
Предмет: Английский язык, автор: Peremand
1. Where _____________(you / go) on holiday last year?
2. Are you hungry? _____________(I/make) some sandwiches for you.
3. I _____________ (know) the family for a very long time.
4. If she comes , he _____________ (get) a surprise.
5. What a lovely day! The sun_____________ (shine) and the sky _____________ (be) blue.
6. Let´s go! We _____________(be) here for more than half an hour
7. She _____________ (go) to the office every day.
8. He _____________(swim) three miles every day.
9. We _____________(go) to the cinema last night.
10. By the end of next year, they _____________ (finish) their homework on the new stadium.
11. Mr. Smith _____________ (sell) his house because it is very old.
12. She is very tired because she _____________(not/ sleep) for two days…
13. We arrived late so the bus _____________ (already/leave).
14. _____________ (you/meet) him last Sunday?
15. By the time he was twenty, he _____________(already/ buy) his own house.
16. She said that she _____________ (come)t o England the following week.
17. I _____________(not/ leave) the station until the train had gone.
18. If you could help me, I _____________ (be) grateful.
19. _____________ (you/let) me use your phone, please?
20. The concert _____________(begin) any moment now.
21. Your letter came while I _____________ (have) lunch.
22. If he doesn´t come, I _____________(never /speak) to him again.
23. We _____________ (not/ live) in England for the last two years.
24. I will never forget what you _____________(tell) me.
Предмет: Алгебра, автор: kovaletslesya