Skip to content
murmot

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

  • wiki.python.org

    While loops - Python Software Foundation Wiki Server

    While loops Usage in Python When do I use them? While loops, like the ForLoop, are used for repeating sections of code - but unlike a for loop, the while loop will not run n times, but until a defined condition is no longer met. If the condition is initially false, the loop body will not be executed at all.

  • wiki.python.org

    Simple Programs - Python Wiki

    1 line: Output. print ('Hello, world! · 2 lines: Input, assignment · 3 lines: For loop, built-in enumerate function · 4 lines: Fibonacci, tuple assignment · 5 lines ...

  • wiki.python.org

    Getting Started - Python Wiki

    Simple Programs – progressively longer code examples, from one-liners to multi-class programs Simple Programs (Chinese) – the same graduated examples, translated into Chinese Learn Python – learning Python through XML, XSLT, and other practical code samples While Loop – a focused explanation of while loops with usage patterns

  • wiki.python.org

    Range Generator - Python Wiki

    ... while loop in the spirit of functional programming - but thats minor. The test case I am less fond of - while it does test the functionality, it doesn't ...

  • wiki.python.org

    Python Speed / Performance Tips

    (Python automatically shares one- and two-character strings.) In the minus ... You may be stuck with the for loop. The for loop example has another inefficiency.

  • wiki.python.org

    Python Wiki

    The Python community wiki — 4,000+ pages of tutorials, guides, and community knowledge.

  • wiki.python.org

    Bit Manipulation - Python Wiki

    For example: 1 # loop pass 1 loop pass 2 2 # 101000 101000 100000 100000 3 # - #!python 4 & 100111 - #!python 5 & 011111 6 # = 100111 = 100000 = 011111 = 0.

  • wiki.python.org

    Beginners Guide / Examples - Python Wiki

    Python Examples and Sample Code ¶ When you’re learning, small examples can be very helpful. The Python Standard Library (archived copy), an electronically published book by Fredrik Lundh, examines most of the modules in Python’s standard library, describing what the module does and giving a short example of its use. Note that this book is now relatively old and so misses a lot of the ...

  • wiki.python.org

    Dbus Examples - Python Wiki

    There are multiple Python bindings for DBus: GDbus and QtDbus are wrappers over the C/C++ APIs of GLib and Qt. pydbus is a modern, pythonic API ...