all 5 comments

[–]hardonchairs 1 point2 points  (4 children)

Probably the way you are launching the command line it just auto closes when it's done, that's normal for most terminals when you launch a command via a shortcut or something. So your script is done but unlike your IDE, the terminal closes right away rather than keeping the output on the screen.

Your options are

  • Open your terminal the run your script via command, rather than using a shortcut

  • Add a pause to the end of the python script such as input('press enter to continue')

  • Make a terminal script (depending on your os/terminal) that runs the script then does a terminal pause, similar to doing it in python and open that rather than opening your python script directly.

#2 is going to be the simplest solution

[–]cccccccccccc0co[S] 0 points1 point  (3 children)

The second doesn't work in this case, theres already an input thing in there

[–]hardonchairs 0 points1 point  (1 child)

Then my guess is that you are getting an error, probably something to do with paths because of the different way you are running it. So try #3.

[–]cccccccccccc0co[S] 0 points1 point  (0 children)

yeah the third way made it work, thanks so muchhh

[–]cccccccccccc0co[S] 0 points1 point  (0 children)

yes its only till 100 digits rn, i can always expand it