+ 1
Take a look my talker code that I have made by python and suggest that how can I keep it in a loop which wilp never end.
I was creating a simple but interesting talker which will just text you back,and it does not speak. I was creating it with python and I cannot understand that how could I keep it in a loop which will never end and continue to take input from user. Take a look at my code and suggest me please that what should I do to keep it in a loop.
1 Odpowiedź
+ 2
Just put it in a loop.
# here goes the lists and stuff
while True:
user = input("")
# here goes the if statements
However, this won't work at SoloLearn because you can't ask for input dynamically in here (all input must be provided before execution). Try it at an IDE.