• Проблема с кодом на Python. Поможете?

    @maximilyich
    running = True
    m = ['he', 'she', 'it', 'i', 'they', 'you', 'we']

    while running:
    pronoun = str.lower(input('Введите местоимение: '))
    if pronoun in m:
    if pronoun == "I" or pronoun == 'i':
    print("Where am " + pronoun + " from?")
    elif pronoun == "he" or pronoun == "she" or pronoun == "it":
    print("Where is " + pronoun + " from?")
    elif pronoun == "they" or pronoun == "you" or pronoun == "we":
    print("Where are " + pronoun + " from?")
    else:
    running = False
    print("Программа завершена")
    Ответ написан
    Комментировать