так что по сути эта функция должна проверять, является ли ваш ввод = переменной р>
Код: Выделить всё
import time
def Print_Sleep_Repeat(text):
print(text)
time.sleep(2)
def nput(lines1,lines2):
user_nput = input("ENETER1OR2")
if user_nput == "1" :
Print_Sleep_Repeat(lines1)
elif user_nput =="2":
Print_Sleep_Repeat(lines2)
else:
return
Print_Sleep_Repeat("storyline")
Print_Sleep_Repeat("............")
Print_Sleep_Repeat("press 1 to.......")
Print_Sleep_Repeat("Press 2 to ............")
nput("nputline1","nputline2")
Код: Выделить всё
line 8, in nput(lines1, lines2)
Код: Выделить всё
7 def nput(lines1,lines2)
Код: Выделить всё
user_nput = input("ENETER1OR2")
Код: Выделить всё
TypeError: 'str' object is not callable"
Код: Выделить всё
}
Подробнее здесь: https://stackoverflow.com/questions/786 ... t-callable