Z
Z
Zorgios2021-02-22 14:16:29
Python
Zorgios, 2021-02-22 14:16:29

Why does python script stop by itself (no errors or warnings)?

I'm running the script in a virtual environment on Ubuntu. In theory, it should work without stopping. But at some point it just stops. The logs are empty, there are no errors. The option with a lack of memory is discarded - there is plenty of it.
Maybe you need to somehow change the design of the script?

test = true
while test == true:
    a = input()
    print (a)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Krostelev, 2021-02-22
@twistfire92

Is this the whole script? or part? true - what is this variable? It's not a boolean value, it's capitalized ( True ). Can something somehow change the value of this variable?
Show the whole code, because this script will fail because true is not initialized.

K
kushnarevsky, 2021-02-22
@kushnarevsky

variable test is already true

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question