Began to learn Python, downloaded the interpreter, write code in the file

x = 0 while x<=10: print x x += 1 

I launch it, the console opened, closed. raw_input() added, did not help.

Closed due to the fact that off-topic participants DeKaNszn , Timofei Bondarev , user31688, PashaPash , ReinRaus 8 May '15 at 19:43 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • "The question is caused by a problem that is no longer reproduced or typed . Although similar questions may be relevant on this site, solving this question is unlikely to help future visitors. You can usually avoid similar questions by writing and researching a minimum program to reproduce the problem before publishing the question. " - DeKaNszn, Timofei Bondarev, Community Spirit, PashaPash, ReinRaus
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • Try running it through IDLE. - ReinRaus 5:56 pm
  • @johniek_comp, do not forget to accept the correct answers! - angry

3 answers 3


    Pyton did not study. Linux made and chmod + x

     #!/usr/bin/python x = 0 while x<=10: print x x += 1 avp@avp-xub11:~/src/ig/web-agent$ ./ 0 1 2 3 4 5 6 7 8 9 10 avp@avp-xub11:~/src/ig/web-agent$ 


    IMHO if you run in Windows in the cmd window or powershell, it will also work. And better, @johniek_comp , you throw this Windows.

    • Damn, the question is quite old. For some reason, @ReinRaus pulled him out. - avp
    • 3
      I did not pull it out ... Just the author erased the text of the question, and I rolled it back so that the integrity of the question and answers was not violated. - ReinRaus 2:42 pm
    • There is a special badge on stekloverflov for necromans ;-) - karmadro4
     raw_input(“Press enter to exit”)