Category:Python
![Language](http://static.miraheze.org/rosettacodewiki/thumb/2/27/Rcode-button-language-crushed.png/64px-Rcode-button-language-crushed.png)
This programming language may be used to instruct a computer to perform a task.
Official website |
---|
Execution method: | Interpreted |
---|---|
Garbage collected: | Yes |
Type safety: | Safe |
Type strength: | Strong |
Type expression: | Implicit |
Type checking: | Dynamic |
See Also: |
From the official Python website: "Python is a dynamic object-oriented programming language that can be used for many kinds of software development."
It is easy to create clean bug-free programs in Python due to the motto: "Errors should never pass silently." Python is an interpreter. Python source files (.py files) are typically compiled to an intermediate bytecode language (.pyc files) and executed by a Python Virtual Machine.
Notes
Because Python uses whitespace for structure, do not format long code examples with leading whitespace, instead use <pre></pre>
tags, or, preferably, <lang python></lang>
tags. This will make it easier to copy code into and out of the wiki. Example:
- <lang python>print 'this line must not have leading indentation!'
if True:
print 'example: ', foo(3), len(bar)</lang>
Some Python examples may deviate from idiomatic Python because they may be written to work in Python 3.X as well as Python 2.X environments. This includes doing things like:
- Using brackets in print statements/functions of one expression.
- Using zip and not izip; keys(), values(), items() and not their iter- forms.
- Checking for raw_input and setting raw_input to input if not found.
- Conditionally importing reduce if it is not found.
This style is not a requirement for Python code on RC, but it may be in use and should not necessarily be 'corrected' if found in examples.
The command line is often used in Python for short pieces of code, and so, again; examples showing such use are not incorrect and may be left.
See Also
Subcategories
This category has the following 18 subcategories, out of 18 total.
@
- Python Implementations (8 P)
- Python User (346 P)
K
- Kivy (1 P)
L
- Livewires (1 P)
M
- Matplotlib (3 P)
N
- NumPy (13 P)
T
- Tkinter (8 P)
V
- VPython (9 P)
W
- WxPython (3 P)
Pages in category "Python"
The following 119 pages are in this category, out of 1,522 total.
(previous page) (next page)T
- Transliterate English text using the Greek alphabet
- Tree datastructures
- Tree from nesting levels
- Tree traversal
- Trigonometric functions
- Triplet of three numbers
- Tropical algebra overloading
- Truncatable primes
- Truncate a file
- Truth table
- Tupper's self-referential formula
- Twelve statements
- Twin primes
- Two bullet roulette
- Two identical strings
- Two sum
- Two's complement
- Type detection
U
- Ulam numbers
- Ulam spiral (for primes)
- Ultra useful primes
- Unbias a random generator
- Undefined values
- Unicode strings
- Unicode variable names
- Unique characters
- Unique characters in each string
- Universal Lambda Machine
- Universal Turing machine
- Unix/ls
- Uno (card game)
- Unprimeable numbers
- UPC
- Update a configuration file
- Upside-down numbers
- URL decoding
- URL encoding
- URL parser
- URL shortener
- Use a REST API
- Use another language to call a function
- User input/Graphical
- User input/Text
- UTF-8 encode and decode
V
- Validate International Securities Identification Number
- Vampire number
- Van der Corput sequence
- Van Eck sequence
- Variable declaration reset
- Variable size/Get
- Variable size/Set
- Variable-length quantity
- Variables
- Variadic fixed-point combinator
- Variadic function
- Vector
- Vector products
- Verhoeff algorithm
- Verify distribution uniformity/Chi-squared test
- Verify distribution uniformity/Naive
- Vibrating rectangles
- Video display modes
- Vigenère cipher
- Vigenère cipher/Cryptanalysis
- Rosetta Code:Village Pump/Pre to Lang Tag Fixer
- Visitor pattern
- Visualize a tree
- Vogel's approximation method
- Voronoi diagram
W
- Wagstaff primes
- Walk a directory/Non-recursively
- Walk a directory/Recursively
- War card game
- Water collected between towers
- Web scraping
- Weird numbers
- Welch's t-test
- Wieferich primes
- Wilson primes of order n
- Window creation
- Window creation/X11
- Window management
- Wireworld
- Wolstenholme numbers
- Word break problem
- Word frequency
- Word ladder
- Word search
- Word wheel
- Word wrap
- Wordiff
- Wordle comparison
- Words containing "the" substring
- Words from neighbour ones
- World Cup group stage
- Worthwhile task shaving
- Write entire file
- Write float arrays to a text file
- Write language name in 3D ASCII
- Write to Windows event log