Skip to content
murmot

Results for “python while loop string example code error 1 site:wiki.python.org 2”

  • wiki.python.org

    For Loop - Python Wiki

    There are two ways to create loops in Python: with the for-loop and the while-loop. When do I use for loops¶. for loops are used when you have a block of code ...

  • wiki.python.org

    Simple Programs - Python Wiki

    4 lines: Fibonacci, tuple assignment. parents, babies = (1, 1) while ... ') 11 lines: Triple-quoted strings, while loop. REFRAIN = ''' {} bottles of ...

  • wiki.python.org

    HandlingExceptions

    MoinMoin software is a good example of where general error catching is good. If you write MoinMoin extension macros, and trigger an error, MoinMoin will give you a detailed report of your error and the chain of events leading up to it.

  • wiki.python.org

    Handling Exceptions - Python Wiki

    1 try: 2 do_some_stuff() 3 except: 4 rollback() 5 raise 6 else: 7 ... Give example of IOError, and interpreting the IOError code. Give example of ...

  • wiki.python.org

    Python Debugging Tools

    pdb extension with curses module that adds console window with source code. JpyDbg. Mac OS X, OS/2, Unix, VMS and Windows. Both a CPYTHON and a JPYTHON ...

  • wiki.python.org

    Range Generator - Python Wiki

    ... 2, …, j-1]; start (!) defaults to 0. When step is given, it specifies the increment (or decrement). For example, range(4) returns [0, 1, 2, 3]. The end ...

  • wiki.python.org

    Core Dev Helper Tools - Python Wiki

    1. mercurial-simpleshare¶. This would have the advantage of avoiding the need to remember “hg serve” details and edit config files, allowing one to ...