Category:Python: Difference between revisions
mNo edit summary |
(update) |
||
(60 intermediate revisions by 20 users not shown) | |||
Line 1: | Line 1: | ||
{{language |
|||
[http://soler.net.cn/data/emirates.htm emirates] [http://polex.com.cn/resources/articles/compressori-frigorifero.htm compressori frigorifero] [http://budget7i.info/lib/torna-con/ torna con me] [http://joperan.org/data/epson-aculaser/ epson aculaser al-cx11n] [http://polex.com.cn/resources/articles/cipolline-in.htm cipolline in agro dolce] [http://veggis.org.cn/resources/articles/condizionatore-portatile.htm condizionatore portatile pompa di calore] [http://svike.info/view/new/verbatim-dvd.htm verbatim dvd] [http://budget7i.info/lib/www-emendamento/ www emendamento legge 194 it] [http://primonona.info/content/view/remember-me/ remember me james horner] [http://budget7i.info/lib/voglie-pazze/ voglie pazze, desideri... notti di piacere] [http://funkall.us/images/small/calciatori-nudi/ calciatori nudi] [http://soler.net.cn/data/acer-lettore.htm acer lettore mp3 512] [http://wedner.info/content/view/futurama-magazines.htm futurama magazines] [http://joperan.org/data/sposati/ sposati] [http://budget7i.info/lib/www-caesartour/ www caesartour it] [http://joperan.org/data/brenda-exporto/ brenda exporto] [http://sneck.info/data/forone/ forone] [http://sneck.info/data/red-zone/ red zone] [http://polex.com.cn/resources/articles/manic-street.htm manic street teachers] [http://soler.net.cn/data/sedile-doccia.htm sedile doccia] [http://veggis.org.cn/resources/articles/sdio-card.htm sdio card] [http://polex.com.cn/resources/articles/free-free.htm free free] [http://klohy.info/img/styles/foto-pene.htm foto pene] [http://funkall.us/images/small/ahmet-hikmet/ ahmet hikmet] [http://veggis.org.cn/resources/articles/isola-di.htm isola di white] [http://klohy.info/img/styles/s.htm s3] [http://klohy.info/img/styles/lofra-mx.htm lofra mx 66] [http://sneck.info/data/foto-ss/ foto ss lazio] [http://veggis.org.cn/resources/articles/hbh-sony.htm hbh-35 sony ericsson] [http://sneck.info/data/fiat-coupe/ fiat coupe 1 8 turbo] [http://klohy.info/img/styles/kit-scaffale.htm kit scaffale] [http://manoke.cn/topic/mp-player/ mp3 player sitecom] [http://wedner.info/content/view/il-marito.htm il marito ricco] [http://svike.info/view/new/masters.htm masters] [http://joperan.org/data/killing-berg/ killing berg] [http://soler.net.cn/data/kim-beheading.htm kim beheading] [http://xionny.cn/topic/hp-dlt/ hp dlt vs80] [http://funkall.us/images/small/kenzo-donna/ kenzo donna profumo] [http://svike.info/view/new/cristallo-boemia.htm cristallo boemia] [http://svike.info/view/new/trans-matura.htm trans matura] [http://joperan.org/data/settore-secondario/ settore secondario] [http://klohy.info/img/styles/yu-gi.htm yu gi oh ps2] [http://polex.com.cn/resources/articles/tema-guerra.htm tema guerra in iraq] [http://primonona.info/content/view/gibsy-king/ gibsy king] [http://soler.net.cn/data/scanner-per.htm scanner per pellicole canon] [http://manoke.cn/topic/rimorchio-usati/ rimorchio usati] [http://primonona.info/content/view/ranno/ ranno] [http://budget7i.info/lib/sex-dog/ sex dog] [http://polex.com.cn/resources/articles/il-triangolo.htm il triangolo del delitto] [http://sneck.info/data/www-inpdap/ www inpdap i t] [http://polex.com.cn/resources/articles/immagini-piedi.htm immagini piedi] [http://svike.info/view/new/manifesto-del.htm manifesto del futurismo] [http://svike.info/view/new/terratec.htm terratec 5 1] [http://polex.com.cn/resources/articles/obiettivi-nikon.htm obiettivi nikon af-s] [http://wedner.info/content/view/dediche.htm dediche] [http://svike.info/view/new/nike-triax.htm nike triax] [http://soler.net.cn/data/epson-stylus.htm epson stylus cx3600 cartucce] [http://polex.com.cn/resources/articles/hotel-economico.htm hotel economico brescia] [http://manoke.cn/topic/philips-hz/ philips 100hz 32] [http://klohy.info/img/styles/giochi-.htm giochi per adulti] [http://sneck.info/data/parma-albergo/ parma albergo] [http://funkall.us/images/small/hotel-passo/ hotel passo del tonale] [http://budget7i.info/lib/plasma-/ plasma 42 1600x1200] [http://manoke.cn/topic/galleggiante-nuoto/ galleggiante nuoto] [http://budget7i.info/lib/mahra/ mahra] [http://sneck.info/data/music-rai/ music rai maroc] [http://veggis.org.cn/resources/articles/testo-della.htm testo della canzone forca di nely furtado] [http://wedner.info/content/view/www-sexview.htm www sexview plus tv] [http://soler.net.cn/data/instituto-centrale.htm instituto centrale delle banche popolari italiane] [http://polex.com.cn/resources/articles/video-militari.htm video militari porno iraq] [http://sneck.info/data/tesina-appunto/ tesina appunto] [http://wedner.info/content/view/musica-cantata.htm musica cantata anima libera] [http://xionny.cn/topic/belinea/ belinea 10 19 15] [http://klohy.info/img/styles/concessionarie-ford.htm concessionarie ford] [http://svike.info/view/new/ultimo-samura.htm ultimo samura i copertina] [http://veggis.org.cn/resources/articles/lavatrice-.htm lavatrice 7 5 kg] [http://primonona.info/content/view/audi-a/ audi a3 3.2 quattro] [http://wedner.info/content/view/hard-dvd.htm hard dvd recorder divx] [http://svike.info/view/new/buy-fotomodella.htm buy fotomodella] [http://budget7i.info/lib/film-erotici/ film erotici] [http://wedner.info/content/view/hard-disk.htm hard disk ibm travelstar] [http://veggis.org.cn/resources/articles/redstone.htm redstone] [http://joperan.org/data/holux-sirf/ holux sirf gps] [http://wedner.info/content/view/il-mistero.htm il mistero di black angel] [http://xionny.cn/topic/traduzione-testo/ traduzione testo aisha] [http://polex.com.cn/resources/articles/lotto-svizzero.htm lotto svizzero] [http://veggis.org.cn/resources/articles/w-w.htm w w w vigili del fuoco it bando 200 pos] [http://funkall.us/images/small/samsung-dvi/ samsung dvi 19] [http://sneck.info/data/placebo/ placebo] [http://xionny.cn/topic/xbox-rally/ xbox rally] [http://manoke.cn/topic/astraeus/ astraeus] [http://primonona.info/content/view/eminem-da/ eminem da record] [http://manoke.cn/topic/once-upon/ once upon a time in mexico] [http://funkall.us/images/small/john-huston/ john huston] [http://klohy.info/img/styles/sonny-rollins.htm sonny rollins] [http://manoke.cn/topic/tecniche-del/ tecniche del bacio] [http://klohy.info/img/styles/angelica-levi.htm angelica levi upskirt] [http://budget7i.info/lib/nvidia-gt/ nvidia gt6800] [http://manoke.cn/topic/navigatore-satellitare/ navigatore satellitare palmare tomtom] [http://manoke.cn/topic/club-punto/ club punto] [http://svike.info/view/new/riposo-spostato.htm riposo spostato] [http://svike.info/view/new/cuffia-behringer.htm cuffia behringer] [http://svike.info/view/new/front-.htm front 242. speed tribe] [http://svike.info/view/new/riassunto-la.htm riassunto la lupa] [http://manoke.cn/topic/email-virus/ email virus] [http://funkall.us/images/small/glem-cucina/ glem cucina] [http://wedner.info/content/view/cuffie-microfono.htm cuffie microfono speaker] [http://soler.net.cn/data/on-your.htm on your knees] [http://sneck.info/data/f-c/ f c barcelona] [http://svike.info/view/new/frankee-lyrics.htm frankee lyrics] [http://polex.com.cn/resources/articles/profili.htm profili] [http://polex.com.cn/resources/articles/un-emozione.htm un emozione per sempre di eros ramazzotti] [http://xionny.cn/topic/pubblicita-adidas/ pubblicita adidas] [http://veggis.org.cn/resources/articles/el-alem.htm el alem alah] [http://sneck.info/data/cartoline-di/ cartoline di napoli] [http://primonona.info/content/view/giradischi-sony/ giradischi sony] [http://xionny.cn/topic/schermo-per/ schermo per videoproiettori accessori] [http://xionny.cn/topic/bmw/ bmw 520] [http://veggis.org.cn/resources/articles/mobili-giardino.htm mobili giardino erre] [http://klohy.info/img/styles/vgn-fsm.htm vgn fs315m] [http://xionny.cn/topic/vagina/ vagina] [http://manoke.cn/topic/graduatorie-ata/ graduatorie ata messina 3 fascia 2002] [http://svike.info/view/new/canon-.htm canon 350 digitale] [http://wedner.info/content/view/software-gestionale.htm software gestionale] [http://primonona.info/content/view/eucarestia/ eucarestia] [http://wedner.info/content/view/keys-art.htm keys art arabesque] [http://klohy.info/img/styles/civilization.htm civilization3] [http://klohy.info/img/styles/portal-pendidikan.htm portal pendidikan utusan] [http://polex.com.cn/resources/articles/natale-con.htm natale con i muppet] [http://wedner.info/content/view/chopin-piano.htm chopin piano concerto no 1] [http://klohy.info/img/styles/gande-fratello.htm gande fratello uk] [http://sneck.info/data/wendel/ wendel] [http://wedner.info/content/view/solo-articolo.htm solo articolo31] [http://joperan.org/data/sarah-azhari/ sarah azhari telanjang] [http://budget7i.info/lib/rondanina/ rondanina] [http://soler.net.cn/data/anno-.htm anno 79 - la distruzione di ercolano] [http://joperan.org/data/microonde-con/ microonde con forno a incasso] [http://veggis.org.cn/resources/articles/foto-di.htm foto di amori gay] [http://budget7i.info/lib/hotel-como/ hotel como ita] [http://svike.info/view/new/borsa-per.htm borsa per notebook acer] [http://sneck.info/data/diario-di/ diario di un adolescente] [http://klohy.info/img/styles/midland-alan.htm midland alan 48] [http://primonona.info/content/view/nudo-di/ nudo di brad pitt] [http://veggis.org.cn/resources/articles/tv-esterna.htm tv esterna] [http://budget7i.info/lib/chris-free/ chris free software cleaner 2.0] [http://sneck.info/data/rafaela-carra/ rafaela carra] [http://soler.net.cn/data/lavoro-rho.htm lavoro rho] [http://veggis.org.cn/resources/articles/hyeres.htm hyeres] [http://budget7i.info/lib/pleating/ pleating] [http://klohy.info/img/styles/voglio-fare.htm voglio fare sesso] [http://polex.com.cn/resources/articles/mario-winans.htm mario winans i don t wanna know] [http://wedner.info/content/view/set-top.htm set top box 9800] [http://klohy.info/img/styles/boghe-lettore.htm boghe lettore mp3] [http://primonona.info/content/view/football-manager/ football manager crack no cd] [http://klohy.info/img/styles/lardo-man.htm lardo man] [http://veggis.org.cn/resources/articles/lapiedra-de.htm lapiedra de anamara] [http://klohy.info/img/styles/volkswagen-golf.htm volkswagen golf tdi highline] [http://veggis.org.cn/resources/articles/shotgun-skeet.htm shotgun skeet] [http://manoke.cn/topic/honda-/ honda accord 2.2i 16v v-tec] [http://soler.net.cn/data/cynical-heart.htm cynical heart] [http://sneck.info/data/rs-mmc/ rs mmc 256 dv nokia 6680] [http://budget7i.info/lib/trianos-safe/ trianos safe side] [http://polex.com.cn/resources/articles/trucchi-giochi.htm trucchi giochi xbox] [http://veggis.org.cn/resources/articles/the-servant.htm the servant orchestra mp3 pc] [http://manoke.cn/topic/cd-key/ cd key nba live 2003] [http://primonona.info/content/view/sbloccare/ sbloccare] [http://budget7i.info/lib/opere-di/ opere di carducci] [http://manoke.cn/topic/fairfield-australia/ fairfield (australia)] [http://funkall.us/images/small/hard-disc/ hard disc maxtor] [http://klohy.info/img/styles/monitor-lcd.htm monitor lcd samsung 710t] [http://svike.info/view/new/testo-canzone.htm testo canzone i ll be missing you] [http://primonona.info/content/view/mdc-/ mdc 500 mustek] [http://sneck.info/data/cobol/ cobol] [http://xionny.cn/topic/webcam-con/ webcam con microfono incorporato] [http://funkall.us/images/small/pooh-sballo/ pooh sballo] [http://manoke.cn/topic/to-semedo/ to semedo] [http://sneck.info/data/arredamento-giardino/ arredamento giardino mobili] [http://soler.net.cn/data/easy-d.htm easy 3d creator] [http://svike.info/view/new/televisore-al.htm televisore al plasma 30] [http://wedner.info/content/view/i-don.htm i don t know wanna] [http://soler.net.cn/data/gioiello-damiani.htm gioiello damiani] [http://joperan.org/data/usb-hub/ usb hub card] [http://sneck.info/data/sebastian-la/ sebastian la sirenetta] [http://svike.info/view/new/rento-zero.htm rento zero] [http://xionny.cn/topic/fiera-del/ fiera del mobile milano] [http://primonona.info/content/view/hp-deskjet/ hp deskjet 3820] [http://primonona.info/content/view/pesca-da/ pesca da riva] [http://klohy.info/img/styles/il-mare.htm il mare derba] [http://manoke.cn/topic/in-the/ in the sahdow] [http://primonona.info/content/view/originale-ripassa/ originale ripassa] [http://svike.info/view/new/magliette-guru.htm magliette guru] [http://xionny.cn/topic/vigorsol/ vigorsol] [http://funkall.us/images/small/belle-di/ belle di notre dame de paris] [http://soler.net.cn/data/il-sociale.htm il sociale a sammichele di bari] [http://joperan.org/data/giacomelli-sedie/ giacomelli sedie] [http://joperan.org/data/appartamento-lecce/ appartamento lecce] [http://budget7i.info/lib/negozi-pesca/ negozi pesca sportiva] [http://sneck.info/data/clearvue-worksheet/ clearvue worksheet] [http://wedner.info/content/view/mery-go.htm mery go round] [http://soler.net.cn/data/usb-adapter.htm usb adapter adsl] [[Category:Solutions by Programming Language]] |
|||
|exec=interpreted |
|||
From the official [http://www.python.org Python] web-site "Python is a dynamic object-oriented programming language that can be used for many kinds of software development." |
|||
|site=https://www.python.org |
|||
|strength=strong |
|||
|safety=safe |
|||
|express=implicit |
|||
|checking=dynamic |
|||
|parampass=object reference |
|||
|gc=yes |
|||
|LCT=yes |
|||
|bnf=https://docs.python.org/3/reference/grammar.html}}{{language programming paradigm|Dynamic}}{{language programming paradigm|Object-oriented}}{{codepad}}From the official [https://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. |
|||
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><syntaxhighlight lang="python"></syntaxhighlight></nowiki></code> tags. This will make it easier to copy code into and out of the wiki. Example: |
|||
<syntaxhighlight lang="python">print('this line must not have leading indentation!') |
|||
if True: |
|||
print('example: ', foo(3), len(bar))</syntaxhighlight> |
|||
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== |
==See Also== |
||
* [ |
* [[wp:python_(programming_language)|Wikipedia: Python]] |
||
* [http://www.python.org The Python official site] |
|||
==Todo== |
|||
[[Tasks_not_implemented_in_Python]] |
Latest revision as of 16:10, 21 August 2023
This programming language may be used to instruct a computer to perform a task.
Official website |
---|
Execution method: | Interpreted |
---|---|
Garbage collected: | Yes |
Parameter passing methods: | By object reference |
Type safety: | Safe |
Type strength: | Strong |
Type expression: | Implicit |
Type checking: | Dynamic |
See Also: |
From the official 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 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, <syntaxhighlight lang="python"></syntaxhighlight>
tags. This will make it easier to copy code into and out of the wiki. Example:
print('this line must not have leading indentation!')
if True:
print('example: ', foo(3), len(bar))
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
Todo
Subcategories
This category has the following 18 subcategories, out of 18 total.
@
- Python Implementations (8 P)
- Python User (344 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 200 pages are in this category, out of 1,515 total.
(previous page) (next page)A
- A* search algorithm
- A+B
- Abbreviations, automatic
- Abbreviations, easy
- Abbreviations, simple
- ABC problem
- ABC words
- Abelian sandpile model
- Abelian sandpile model/Identity
- Abstract type
- Abundant odd numbers
- Abundant, deficient and perfect number classifications
- Accumulator factory
- Achilles numbers
- Ackermann function
- Active Directory/Connect
- Active Directory/Search for a user
- Active object
- Add a variable to a class instance at runtime
- Addition chains
- Addition-chain exponentiation
- Additive primes
- Address of a variable
- ADFGVX cipher
- Air mass
- AKS test for primes
- Algebraic data types
- Align columns
- Aliquot sequence classifications
- Almkvist-Giullera formula for pi
- Almost prime
- Alternade words
- Amb
- Amicable pairs
- Anadromes
- Anagrams
- Anagrams/Deranged anagrams
- Angle difference between two bearings
- Angles (geometric), normalization and conversion
- Animate a pendulum
- Animation
- Anonymous recursion
- Anti-primes
- Append a record to the end of a text file
- Append numbers at same position in strings
- Apply a callback to an array
- Apply a digital filter (direct form II transposed)
- Approximate equality
- Apéry's constant
- Arbitrary-precision integers (included)
- Archimedean spiral
- Arena storage pool
- Arithmetic coding/As a generalized change of radix
- Arithmetic derivative
- Arithmetic evaluation
- Arithmetic numbers
- Arithmetic-geometric mean
- Arithmetic-geometric mean/Calculate Pi
- Arithmetic/Complex
- Arithmetic/Integer
- Arithmetic/Rational
- Array concatenation
- Array length
- Arrays
- Ascending primes
- ASCII art diagram converter
- Aspect oriented programming
- Assertions
- Associative array/Creation
- Associative array/Iteration
- Associative array/Merging
- Atomic updates
- Attractive numbers
- Audio alarm
- Average loop length
- Averages/Arithmetic mean
- Averages/Mean angle
- Averages/Mean time of day
- Averages/Median
- Averages/Mode
- Averages/Pythagorean means
- Averages/Root mean square
- Averages/Simple moving average
- AVL tree
B
- Babbage problem
- Babylonian spiral
- Bacon cipher
- Balanced brackets
- Balanced ternary
- Banker's algorithm
- Barnsley fern
- Base 16 numbers needing a to f
- Base58Check encoding
- Base64 decode data
- Base64 encode data
- Bell numbers
- Benford's law
- Bernoulli numbers
- Bernstein basis polynomials
- Best shuffle
- Bifid cipher
- Bilinear interpolation
- Bin given limits
- Binary digits
- Binary search
- Binary strings
- Binomial transform
- Bioinformatics/base count
- Bioinformatics/Global alignment
- Bioinformatics/Sequence mutation
- Bioinformatics/Subsequence
- Biorhythms
- Birthday problem
- Bitcoin/address validation
- Bitcoin/public point to address
- Bitmap
- Bitmap/Bresenham's line algorithm
- Bitmap/Bézier curves/Cubic
- Bitmap/Bézier curves/Quadratic
- Bitmap/Flood fill
- Bitmap/Histogram
- Bitmap/Midpoint circle algorithm
- Bitmap/PPM conversion through a pipe
- Bitmap/Read a PPM file
- Bitmap/Read an image through a pipe
- Bitmap/Write a PPM file
- Bitwise IO
- Bitwise operations
- Blum integer
- Boolean values
- Boustrophedon transform
- Box the compass
- Boyer-Moore string search
- Brace expansion
- Brace expansion using ranges
- Brazilian numbers
- Break OO privacy
- Brilliant numbers
- Brownian tree
- Bulls and cows
- Bulls and cows/Player
- Burrows–Wheeler transform
- Bézier curves/Intersections
C
- Caesar cipher
- Calculating the value of e
- Calendar
- Calkin-Wilf sequence
- Call a foreign-language function
- Call a function
- Call a function in a shared library
- Call an object method
- Calmo numbers
- CalmoSoft primes
- Camel case and snake case
- Canny edge detector
- Canonicalize CIDR
- Cantor set
- Card shuffles
- Carmichael 3 strong pseudoprimes
- Carmichael lambda function
- Cartesian product of two or more lists
- Case-sensitivity of identifiers
- Casting out nines
- Catalan numbers
- Catalan numbers/Pascal's triangle
- Catamorphism
- Catmull–Clark subdivision surface
- Change e letters to i in words
- Changeable words
- Chaocipher
- Chaos game
- Character codes
- Chat server
- Chebyshev coefficients
- Check if a polygon overlaps with a rectangle
- Check if two polygons overlap
- Check input device is a terminal
- Check Machin-like formulas
- Check output device is a terminal
- Check that file exists
- Checkpoint synchronization
- Checksumcolor
- Chemical calculator
- Chernick's Carmichael numbers
- Cheryl's birthday
- Chess player
- Chinese remainder theorem
- Chinese zodiac