1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Rep Power

    is it idle, or my program

    this program works with idle python shell but not in python
    command prompt

    for n in [1,2,3,4]rint n

    # this works just fine in the 'python shell'.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2004
    London, England
    Rep Power
    It works fine for me. Are you sure you typed it correctly?

    I presume when you say 'from the python command prompt' you mean saving it to a file and executing it. When you say it doesn't work, what happens? Does it throw an exception, or hang? What version of Python are you using? What OS? How are you running it?

    Dave - The Developers' Coach

IMN logo majestic logo threadwatch logo seochat tools logo