+ 1

Multiple while loops or simultaneous "inputs"

Hi, I don't really know how to focus this question. But I have a big mental trouble. With a friend, we are modelling a kind of FTP messenger, and we have a problem. In one hand, we want a part of code focused with a while loop refreshing the data. In the other hand, we want another while loop waiting the user to write to chat. How can we hold this both loops? And, out of this example, how can we write in python scripts that are able to receive "orders" from the out side world. I don't know how to explain me, I'm going to use a row example. With scratch, every object does some actions where the start is pressed, but it's not lineal code, so when you ... Press de "k"... The object does a reaction, and if something broadcasts: "KillAll" the object finishes with its life. I know it's a bit confusing, but I will be very happy if someone could answer me. I can explain in more detail if you need it. Say that we aren't working with graphical interfaces, just the terminal. Tnks.

18th Jun 2019, 10:05 PM
guim casadellà cors
guim casadellà cors - avatar
1 Resposta
+ 1
There is communication from internet, and communication between programs. You will need two programs running simultaneously in order to have the two talk to one another.
19th Jun 2019, 4:01 AM
Jackson O’Donnell