Answer the question
In order to leave comments, you need to log in
How to choose a function to run through unicode?
Good afternoon! I am learning a beautiful language on my own. I decided to write the simplest command for myself as a consolidation of the material covered. But I ran into such a problem that when I enter data in the string format, I can not run the function. Please help a beginner coder)
i = str(input("Вопрос строчный?").lower())
i = ['да','нет']
if str(i) == [0]:
ro = int (input("Вопрос числовой 1 "))
if int (ro) < 10:
print ("ответ1! ")
elif int (ro) >= 10:
print ("ответ1\n")
print ("ответ1")
i = "нет"
if str (i) == [1]:
ro = int(input("Вопрос числовой 2"))
if int (ro) < 10:
print ("ответ2")
elif int (ro) >= 10:
print ("ответ2\n")
print ("ответ2")
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question