Есть четыре вещи неправильно с этим кодом. определить все четыре вопроса. answer = input("what is the name of dr. bunsen honeydew's assistant? ") if a = "beaker": print("correct! ") else print("incorrect! it is beaker.")

слмтл слмтл    1   25.08.2019 13:10    5

Ответы
temayurin2016 temayurin2016  05.10.2020 18:51
Для Python 2.X:

answer = raw_input("What is the name of Dr. Bunsen Honeydew's assistant? ")  # input -> raw_input
if a == "Beaker":  # a = -> a ==
    print "Correct!"  # без скобок
else:  # else -> else:
    print "Incorrect! It is Beaker."
ПОКАЗАТЬ ОТВЕТЫ
Другие вопросы по теме Информатика