Skip to content
murmot

Results for “python while loop string example program error site:mail.python.org”

  • mail.python.org

    [Tutor] Issue w/ while loops

    The modified program executes well only when the user input has the > correct format (integer or float) and it breaks when the user enters a > string (at that point the program should print ("Invalid input") and > loop back to its beginning). >

  • mail.python.org

    [Tutor] Issue w/ string input "for", "not", "while"...

    Are you running the program inside idle? The (in this case unwanted) syntax > highlighting is a feature of idle's shell. Good catch, I didn't notice that Rafael was only complaining about the colorizing of his text. I assumed it was actually executing the input.