A
A
andrewPython2019-08-01 16:00:13
Python
andrewPython, 2019-08-01 16:00:13

Python 3 not accepting text in response to a question?

I just started learning python... So I apologize for the possibly dumbest question:
MacOS, Python 3.7.3
I have the code:

spoiler

# -*- coding: utf-8 -*-
import codecs
import json
print("This my second programm!")
print("Приветствую тебя, колега!")
name = input("Как тебя зовут: ")
print(name, ", добро пожаловать в мир программирования!")
answer = input("Любишь свою работу? (Y/N)")
if answer == "Y":
print("Тебе положен бонус, выбирай:")
input("1 - Курс по Python 2 - Курс по JAVA (1/2)")
elif answer == "N":
print("Ты уволен!")
else:
print("Отвечай на вопрос!")
answer = input("Любишь свою работу? (Y/N)")

Code does not accept text:
Neither English
spoiler
5d42e1087803d720991971.png

Nor Russian
spoiler
5d42e130a10e2000159014.png

Reacts only to numbers, it is inadequate:
spoiler
5d42e1659847b028997593.png

I feel like a moron, because for sure, it's some kind of nonsense, please tell me where I messed up?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
ScriptKiddo, 2019-08-01
@andrewPython

python3 scriptname.py

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question