-3

I do not know how to do code that is executing over and over again. I would like to achieve something like this: (< stands for input, > stands for output)

message=input()
print('Write down the text.')
>Write down the text.
<qwerty
>qwerty
>Write down the text.
<asd
>asd

2 Answers2

1

You can achieve this with a

   while True:
      // code you want to execute repeatedly here

The while loop will continue to execute until the condition becomes false (which it never will, in this case) so if/when you want to break out of the loop you'll need to have use a break statement

KLP
  • 433
  • 2
  • 5
  • When I enter it, the text that I've entered is being written over and over. I want to be able to give one input then next and next... but without process finishing. – ApocalypseNow Nov 30 '19 at 22:23
0

Do you mean like this?

while True:
   message=input("Write down the text: ")
   print(message)
Exp
  • 82
  • 5