Code doesn't run
GabrieleRomagno (11)

It happens regularly that the python code i am writing simply doesn't run. I try to stop and nothing happens. I refresh the page i get the same problem. Few hours later i try and everything runs smoothly.
I really would like to use Repl but i am having so many headheache that i am tempted to find another solution :(

You are viewing a single comment. View All
icy_1 (0)

It's usually quite good. Just today maybe they're overloaded, as I experienced compiler loading and execution problems. I know locally for me east coast USA, there is currently a hurricane/flash flood, etc., maybe related.

GabrieleRomagno (11)

i am located in EU so i don't think that is the problem @icy_1.
Maybe i am doing something wrong. To run a code i should simply select a file and ctrl+enter? is only the "main" file played?
These are probably stupid questions but are there some tutorials where i could get a better feeling of how to use repl?
thanks

icy_1 (0)

@GabrieleRomagno since it ran for you a few hours later, that's why I suspect the server experienced overload.

For python I think typically you define a main function and add a bit of protection against automatic running if imported as a module.

Example https://repl.it/@icy_1/FelineGrouchyPrintablecharacter

(I give up trying to write comments in code... i tried <pre> <code> [code]... )

If you had both the files as in example, the main() function would run.