Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

34
Lang/Python/00-LANG.txt Normal file
View file

@ -0,0 +1,34 @@
{{language
|exec=interpreted
|site=http://www.python.org
|strength=strong
|safety=safe
|express=implicit
|checking=dynamic
|parampass=object reference
|gc=yes
|LCT=yes
|bnf=http://docs.python.org/py3k/reference/grammar.html}}{{language programming paradigm|Dynamic}}{{language programming paradigm|Object-oriented}}{{codepad}}From the official [http://www.python.org Python] website: "Python is a programming language that lets you work more quickly and integrate your systems more effectively. You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs."
It is easy to create clean bug-free programs in Python due to the motto: "Errors should never pass silently." Python is an [[wp:Interpreter (computing)|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 <code><nowiki><pre></pre></nowiki></code> tags, or, preferably, <code><nowiki><lang python></lang></nowiki></code> 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==
* [[wp:python_(programming_language)|Wikipedia: Python]]
==Todo==
[[Reports:Tasks_not_implemented_in_Python]]

2
Lang/Python/00-META.yaml Normal file
View file

@ -0,0 +1,2 @@
---
from: http://rosettacode.org/wiki/Category:Python

1
Lang/Python/100-doors Symbolic link
View file

@ -0,0 +1 @@
../../Task/100-doors/Python

1
Lang/Python/100-prisoners Symbolic link
View file

@ -0,0 +1 @@
../../Task/100-prisoners/Python

1
Lang/Python/15-puzzle-game Symbolic link
View file

@ -0,0 +1 @@
../../Task/15-puzzle-game/Python

View file

@ -0,0 +1 @@
../../Task/15-puzzle-solver/Python

1
Lang/Python/2048 Symbolic link
View file

@ -0,0 +1 @@
../../Task/2048/Python

1
Lang/Python/21-game Symbolic link
View file

@ -0,0 +1 @@
../../Task/21-game/Python

1
Lang/Python/24-game Symbolic link
View file

@ -0,0 +1 @@
../../Task/24-game/Python

1
Lang/Python/24-game-Solve Symbolic link
View file

@ -0,0 +1 @@
../../Task/24-game-Solve/Python

View file

@ -0,0 +1 @@
../../Task/4-rings-or-4-squares-puzzle/Python

View file

@ -0,0 +1 @@
../../Task/9-billion-names-of-God-the-integer/Python

View file

@ -0,0 +1 @@
../../Task/99-bottles-of-beer/Python

1
Lang/Python/A+B Symbolic link
View file

@ -0,0 +1 @@
../../Task/A+B/Python

1
Lang/Python/ABC-problem Symbolic link
View file

@ -0,0 +1 @@
../../Task/ABC-problem/Python

1
Lang/Python/ADFGVX-cipher Symbolic link
View file

@ -0,0 +1 @@
../../Task/ADFGVX-cipher/Python

View file

@ -0,0 +1 @@
../../Task/AKS-test-for-primes/Python

View file

@ -0,0 +1 @@
../../Task/ASCII-art-diagram-converter/Python

1
Lang/Python/AVL-tree Symbolic link
View file

@ -0,0 +1 @@
../../Task/AVL-tree/Python

View file

@ -0,0 +1 @@
../../Task/Abbreviations-automatic/Python

View file

@ -0,0 +1 @@
../../Task/Abbreviations-easy/Python

View file

@ -0,0 +1 @@
../../Task/Abbreviations-simple/Python

View file

@ -0,0 +1 @@
../../Task/Abelian-sandpile-model/Python

View file

@ -0,0 +1 @@
../../Task/Abelian-sandpile-model-Identity/Python

1
Lang/Python/Abstract-type Symbolic link
View file

@ -0,0 +1 @@
../../Task/Abstract-type/Python

View file

@ -0,0 +1 @@
../../Task/Abundant-deficient-and-perfect-number-classifications/Python

View file

@ -0,0 +1 @@
../../Task/Abundant-odd-numbers/Python

View file

@ -0,0 +1 @@
../../Task/Accumulator-factory/Python

View file

@ -0,0 +1 @@
../../Task/Achilles-numbers/Python

View file

@ -0,0 +1 @@
../../Task/Ackermann-function/Python

View file

@ -0,0 +1 @@
../../Task/Active-Directory-Connect/Python

View file

@ -0,0 +1 @@
../../Task/Active-Directory-Search-for-a-user/Python

1
Lang/Python/Active-object Symbolic link
View file

@ -0,0 +1 @@
../../Task/Active-object/Python

View file

@ -0,0 +1 @@
../../Task/Add-a-variable-to-a-class-instance-at-runtime/Python

1
Lang/Python/Additive-primes Symbolic link
View file

@ -0,0 +1 @@
../../Task/Additive-primes/Python

View file

@ -0,0 +1 @@
../../Task/Address-of-a-variable/Python

View file

@ -0,0 +1 @@
../../Task/Algebraic-data-types/Python

1
Lang/Python/Align-columns Symbolic link
View file

@ -0,0 +1 @@
../../Task/Align-columns/Python

View file

@ -0,0 +1 @@
../../Task/Aliquot-sequence-classifications/Python

View file

@ -0,0 +1 @@
../../Task/Almkvist-Giullera-formula-for-pi/Python

1
Lang/Python/Almost-prime Symbolic link
View file

@ -0,0 +1 @@
../../Task/Almost-prime/Python

1
Lang/Python/Amb Symbolic link
View file

@ -0,0 +1 @@
../../Task/Amb/Python

1
Lang/Python/Amicable-pairs Symbolic link
View file

@ -0,0 +1 @@
../../Task/Amicable-pairs/Python

1
Lang/Python/Anagrams Symbolic link
View file

@ -0,0 +1 @@
../../Task/Anagrams/Python

View file

@ -0,0 +1 @@
../../Task/Anagrams-Deranged-anagrams/Python

View file

@ -0,0 +1 @@
../../Task/Angle-difference-between-two-bearings/Python

View file

@ -0,0 +1 @@
../../Task/Angles-geometric-normalization-and-conversion/Python

View file

@ -0,0 +1 @@
../../Task/Animate-a-pendulum/Python

1
Lang/Python/Animation Symbolic link
View file

@ -0,0 +1 @@
../../Task/Animation/Python

View file

@ -0,0 +1 @@
../../Task/Anonymous-recursion/Python

1
Lang/Python/Anti-primes Symbolic link
View file

@ -0,0 +1 @@
../../Task/Anti-primes/Python

View file

@ -0,0 +1 @@
../../Task/Append-a-record-to-the-end-of-a-text-file/Python

View file

@ -0,0 +1 @@
../../Task/Apply-a-callback-to-an-array/Python

View file

@ -0,0 +1 @@
../../Task/Apply-a-digital-filter-direct-form-II-transposed-/Python

View file

@ -0,0 +1 @@
../../Task/Approximate-equality/Python

View file

@ -0,0 +1 @@
../../Task/Arbitrary-precision-integers-included-/Python

View file

@ -0,0 +1 @@
../../Task/Archimedean-spiral/Python

View file

@ -0,0 +1 @@
../../Task/Arithmetic-Complex/Python

View file

@ -0,0 +1 @@
../../Task/Arithmetic-Integer/Python

View file

@ -0,0 +1 @@
../../Task/Arithmetic-Rational/Python

View file

@ -0,0 +1 @@
../../Task/Arithmetic-derivative/Python

View file

@ -0,0 +1 @@
../../Task/Arithmetic-evaluation/Python

View file

@ -0,0 +1 @@
../../Task/Arithmetic-geometric-mean/Python

View file

@ -0,0 +1 @@
../../Task/Arithmetic-geometric-mean-Calculate-Pi/Python

View file

@ -0,0 +1 @@
../../Task/Arithmetic-numbers/Python

View file

@ -0,0 +1 @@
../../Task/Array-concatenation/Python

1
Lang/Python/Array-length Symbolic link
View file

@ -0,0 +1 @@
../../Task/Array-length/Python

1
Lang/Python/Arrays Symbolic link
View file

@ -0,0 +1 @@
../../Task/Arrays/Python

View file

@ -0,0 +1 @@
../../Task/Ascending-primes/Python

1
Lang/Python/Assertions Symbolic link
View file

@ -0,0 +1 @@
../../Task/Assertions/Python

View file

@ -0,0 +1 @@
../../Task/Associative-array-Creation/Python

View file

@ -0,0 +1 @@
../../Task/Associative-array-Iteration/Python

View file

@ -0,0 +1 @@
../../Task/Associative-array-Merging/Python

1
Lang/Python/Atomic-updates Symbolic link
View file

@ -0,0 +1 @@
../../Task/Atomic-updates/Python

View file

@ -0,0 +1 @@
../../Task/Attractive-numbers/Python

View file

@ -0,0 +1 @@
../../Task/Average-loop-length/Python

View file

@ -0,0 +1 @@
../../Task/Averages-Arithmetic-mean/Python

View file

@ -0,0 +1 @@
../../Task/Averages-Mean-angle/Python

View file

@ -0,0 +1 @@
../../Task/Averages-Mean-time-of-day/Python

1
Lang/Python/Averages-Median Symbolic link
View file

@ -0,0 +1 @@
../../Task/Averages-Median/Python

1
Lang/Python/Averages-Mode Symbolic link
View file

@ -0,0 +1 @@
../../Task/Averages-Mode/Python

View file

@ -0,0 +1 @@
../../Task/Averages-Pythagorean-means/Python

View file

@ -0,0 +1 @@
../../Task/Averages-Root-mean-square/Python

View file

@ -0,0 +1 @@
../../Task/Averages-Simple-moving-average/Python

View file

@ -0,0 +1 @@
../../Task/B-zier-curves-Intersections/Python

1
Lang/Python/Babbage-problem Symbolic link
View file

@ -0,0 +1 @@
../../Task/Babbage-problem/Python

View file

@ -0,0 +1 @@
../../Task/Babylonian-spiral/Python

View file

@ -0,0 +1 @@
../../Task/Balanced-brackets/Python

View file

@ -0,0 +1 @@
../../Task/Balanced-ternary/Python

1
Lang/Python/Barnsley-fern Symbolic link
View file

@ -0,0 +1 @@
../../Task/Barnsley-fern/Python

View file

@ -0,0 +1 @@
../../Task/Base64-decode-data/Python

1
Lang/Python/Bell-numbers Symbolic link
View file

@ -0,0 +1 @@
../../Task/Bell-numbers/Python

1
Lang/Python/Benfords-law Symbolic link
View file

@ -0,0 +1 @@
../../Task/Benfords-law/Python

View file

@ -0,0 +1 @@
../../Task/Bernoulli-numbers/Python

1
Lang/Python/Best-shuffle Symbolic link
View file

@ -0,0 +1 @@
../../Task/Best-shuffle/Python

1
Lang/Python/Bifid-cipher Symbolic link
View file

@ -0,0 +1 @@
../../Task/Bifid-cipher/Python

View file

@ -0,0 +1 @@
../../Task/Bin-given-limits/Python

1
Lang/Python/Binary-digits Symbolic link
View file

@ -0,0 +1 @@
../../Task/Binary-digits/Python

1
Lang/Python/Binary-search Symbolic link
View file

@ -0,0 +1 @@
../../Task/Binary-search/Python

1
Lang/Python/Binary-strings Symbolic link
View file

@ -0,0 +1 @@
../../Task/Binary-strings/Python

Some files were not shown because too many files have changed in this diff Show more