Category:Python: Difference between revisions
mNo edit summary |
(update) |
||
(48 intermediate revisions by 18 users not shown) | |||
Line 1: | Line 1: | ||
{{language |
|||
[http://puli.org.cn/web/plane-crash/ plane crash] [http://puli.org.cn/web/registratori-audio/ registratori audio] [http://nibko.info/data/peg-perego.htm peg perego passeggino venezia] [http://nibko.info/data/savi-srl.htm savi srl] [http://nibko.info/data/incinte-porno.htm incinte porno] [http://nibko.info/data/jamelia-davis.htm jamelia davis] [http://zodip.info/description/giochi-si.htm giochi si intelligenza] [http://puli.org.cn/web/www-barracuda/ www barracuda it] [http://italnet.net.cn/img/cbr-/ cbr 900 rr honda] [http://italnet.net.cn/img/hitmania-dance/ hitmania dance champion 2004] [http://puli.org.cn/web/biglietto-augurale/ biglietto augurale] [http://italnet.net.cn/img/telefono-nokia/ telefono nokia] [http://zodip.info/description/trasmettitore-audio.htm trasmettitore audio fm] [http://hangzhau.cn/html/batteria-presario/ batteria presario] [http://zodip.info/description/voli-lerici.htm voli lerici] [http://puli.org.cn/web/mircea-russu/ mircea russu] [http://puli.org.cn/web/discount/ discount] [http://italnet.net.cn/img/fergie-sexy/ fergie sexy] [http://hangzhau.cn/html/beghelli-gas/ beghelli gas] [http://italnet.net.cn/img/musica-wav/ musica wav] [http://nibko.info/data/sapphic.htm sapphic] [http://puli.org.cn/web/opel-astra/ opel astra 1.8 cdx] [http://zodip.info/description/bisex-lsb.htm bisex lsb] [http://nibko.info/data/aggiungi-posto.htm aggiungi posto tavola] [http://italnet.net.cn/img/caduca/ caduca] [http://hangzhau.cn/html/mariah-carey/ mariah carey video nuda] [http://nibko.info/data/www-eledofe.htm www eledofe it] [http://zodip.info/description/age-of.htm age of empires 2 the conquerors] [http://hangzhau.cn/html/spot-telecom/ spot telecom berlusconi] [http://italnet.net.cn/img/giardino-delle/ giardino delle idee] [http://nibko.info/data/illuminazione-per.htm illuminazione per giardino] [http://puli.org.cn/web/tf-/ tf 4000 pvr] [http://nibko.info/data/tenerife.htm tenerife] [http://nibko.info/data/logitechgamepad-rumblepad.htm logitech-gamepad rumblepad ii usb] [http://hangzhau.cn/html/colombino/ colombino] [http://zodip.info/description/make-francis.htm make francis] [http://italnet.net.cn/img/evanecense/ evanecense] [http://zodip.info/description/hard-top.htm hard top bmw z3] [http://hangzhau.cn/html/can-t/ can t stop] [http://hangzhau.cn/html/bari-graffiti/ bari graffiti] [http://nibko.info/data/offerta-lavoro.htm offerta lavoro bari] [http://puli.org.cn/web/ati-/ ati 9550 256 agp] [http://italnet.net.cn/img/piotti-snc/ piotti snc] [http://nibko.info/data/peg-perego.htm peg perego golf] [http://nibko.info/data/password-spoof.htm password spoof] [http://nibko.info/data/sex-woman.htm sex woman] [http://italnet.net.cn/img/kebnekaise/ kebnekaise] [http://puli.org.cn/web/supporto-dvd/ supporto dvd] [http://nibko.info/data/cara.htm cara] [http://puli.org.cn/web/cordless-color/ cordless color] [http://puli.org.cn/web/fuoristrada-pordenone/ fuoristrada pordenone] [http://puli.org.cn/web/mousse-t/ mousse t feat emma lanford is it cos i] [http://zodip.info/description/fifa.htm fifa 05] [http://italnet.net.cn/img/outcast-roses/ outcast roses] [http://puli.org.cn/web/los-diablo/ los diablo midi] [http://puli.org.cn/web/lg-vc/ lg vc9800] [http://puli.org.cn/web/franciasing/ franciasing] [http://hangzhau.cn/html/opel-corsa/ opel corsa 1.7 dti sport] [http://zodip.info/description/o-mia.htm o mia bela] [http://italnet.net.cn/img/dragostea-din/ dragostea din tei o zone haiduci] [http://italnet.net.cn/img/clipporno/ clipporno] [http://italnet.net.cn/img/epson-cinghia/ epson cinghia di trasferimento] [http://hangzhau.cn/html/jamella-diablo/ jamella diablo 2 editor] [http://nibko.info/data/nike-air.htm nike air ninety] [http://italnet.net.cn/img/prezzi-agriturismo/ prezzi agriturismo] [http://zodip.info/description/meganqt.htm meganqt] [http://hangzhau.cn/html/videoregistratori-daewoo/ videoregistratori daewoo] [http://puli.org.cn/web/sancho/ sancho] [http://italnet.net.cn/img/biolay/ biolay] [http://hangzhau.cn/html/biglietto-aereo/ biglietto aereo roma bangkok] [http://zodip.info/description/diffusori-b.htm diffusori b] [http://puli.org.cn/web/denis-russos/ denis russos] [http://puli.org.cn/web/erbe-infestanti/ erbe infestanti] [http://nibko.info/data/hotel-concorde.htm hotel concorde arona] [http://nibko.info/data/jeanhugues-anglade.htm jean-hugues anglade] [http://nibko.info/data/black-sex.htm black sex clips] [http://hangzhau.cn/html/lcd-b/ lcd b o 32] [http://puli.org.cn/web/philips/ philips 5812] [http://zodip.info/description/opel-tigra.htm opel tigra 1 3 cdti] [http://hangzhau.cn/html/voli-gubbio/ voli gubbio] [http://italnet.net.cn/img/denon-home/ denon home] [http://hangzhau.cn/html/moppie-karaoke/ moppie karaoke] [http://hangzhau.cn/html/rapina-a/ rapina... a nave armata] [http://hangzhau.cn/html/sony-lcsva/ sony lcs-va10] [http://puli.org.cn/web/donne-ninfomani/ donne ninfomani] [http://puli.org.cn/web/rivenditori-calabria/ rivenditori calabria] [http://hangzhau.cn/html/tv-lcd/ tv lcd 22] [http://nibko.info/data/lg-.htm lg 9900 dvd] [http://nibko.info/data/salemme-films.htm salemme films] [http://puli.org.cn/web/animal-hard/ animal hard] [http://hangzhau.cn/html/call-of/ call of me] [http://italnet.net.cn/img/venuta/ venuta] [http://zodip.info/description/sport-medicina.htm sport medicina] [http://hangzhau.cn/html/girls-anal/ girls anal vree watch] [http://hangzhau.cn/html/bmw-/ bmw 6 cabrio] [http://hangzhau.cn/html/truyentranh/ truyentranh] [http://zodip.info/description/toulmin.htm toulmin] [http://zodip.info/description/yety-sport.htm yety sport] [http://zodip.info/description/imagini-visita.htm imagini visita ginecologo] [http://italnet.net.cn/img/hilary-duff/ hilary duff most wanted] [http://zodip.info/description/cartina-regione.htm cartina regione] [http://italnet.net.cn/img/vuelve-a/ vuelve a mi] [http://zodip.info/description/eug.htm eug] [http://puli.org.cn/web/canon-caricabatterie/ canon caricabatterie] [http://hangzhau.cn/html/agnes-moorehead/ agnes moorehead] [http://italnet.net.cn/img/becker-traffic/ becker traffic pro 7945] [http://hangzhau.cn/html/haplan/ haplan 2] [http://zodip.info/description/tarocco-celtico.htm tarocco celtico] [http://italnet.net.cn/img/piscina-calcinate/ piscina calcinate] [http://nibko.info/data/beethoven-inno.htm beethoven inno al creatore] [http://italnet.net.cn/img/klossowski/ klossowski] [http://italnet.net.cn/img/da-cacca/ da cacca] [http://puli.org.cn/web/processori-intel/ processori intel xeon 2 8 ghz 2 8] [http://nibko.info/data/manipolazione-informazione.htm manipolazione informazione] [http://italnet.net.cn/img/cromwell/ cromwell] [http://italnet.net.cn/img/indesit-wi/ indesit wi 600] [http://puli.org.cn/web/jose-luis/ jose luis perales] [http://hangzhau.cn/html/frigorifero-/ frigorifero 188 cm] [http://zodip.info/description/intervento-tendine.htm intervento tendine femorale] [http://zodip.info/description/jvc-autoradio.htm jvc autoradio lettore cd mp3] [http://zodip.info/description/panasonic-videocamera.htm panasonic- videocamera digitale] [http://zodip.info/description/al.htm al 501] [http://italnet.net.cn/img/technisat-skystar/ technisat skystar pci] [http://zodip.info/description/acer-power.htm acer power fv 515] [http://zodip.info/description/differenziale-matematica.htm differenziale (matematica e g...] [http://italnet.net.cn/img/ballz-d/ ballz 3d 2.5] [http://nibko.info/data/hiroshima-prefettura.htm hiroshima (prefettura)] [http://italnet.net.cn/img/raccoglitore-monete/ raccoglitore monete] [http://italnet.net.cn/img/telefoni-nec/ telefoni nec] [http://zodip.info/description/spartito-spiderman.htm spartito spiderman] [http://nibko.info/data/toshiba-lampade.htm toshiba lampade] [http://italnet.net.cn/img/acaju/ acaju] [http://puli.org.cn/web/foto-licia/ foto licia colo nuda] [http://italnet.net.cn/img/leasing-ford/ leasing ford] [http://puli.org.cn/web/i-robe/ i robe] [http://puli.org.cn/web/lagostina-pressione/ lagostina pressione] [http://hangzhau.cn/html/pavia/ pavia] [http://zodip.info/description/gol-de.htm gol de marado] [http://hangzhau.cn/html/persecuzione-degli/ persecuzione degli ebrei] [http://puli.org.cn/web/intimo-uomo/ intimo uomo navigare] [http://puli.org.cn/web/mp-fm/ mp3 fm lettori] [http://nibko.info/data/nuovi-dettagli.htm nuovi dettagli sul film di splinter cell] [http://hangzhau.cn/html/polar-s/ polar s 625x] [http://hangzhau.cn/html/condizionatori-dual/ condizionatori dual classe a] [http://hangzhau.cn/html/erano-tutti/ erano tutti miei figli] [http://puli.org.cn/web/lambata/ lambata] [http://hangzhau.cn/html/hairy-mature/ hairy mature] [http://italnet.net.cn/img/la-casa/ la casa degli spiriti allende isabel] [http://hangzhau.cn/html/testo-in/ testo in italiano fuck it] [http://nibko.info/data/la-spada.htm la spada e la magia] [http://nibko.info/data/christina-millian.htm christina millian dip it low] [http://puli.org.cn/web/ingegnere-chimico/ ingegnere chimico] [http://zodip.info/description/manlio.htm manlio] [http://italnet.net.cn/img/fondo-pantallas/ fondo pantallas] [http://zodip.info/description/ragazzo-collegno.htm ragazzo collegno] [http://italnet.net.cn/img/haflinger-puch/ haflinger puch] [http://italnet.net.cn/img/gallerie-porno/ gallerie porno gratuite] [http://zodip.info/description/baan-specialist.htm baan specialist (regione lombardia - milano provincia)] [http://puli.org.cn/web/www-tvazteca/ www tvazteca com topten] [http://zodip.info/description/hifi-lg.htm hi-fi lg] [http://puli.org.cn/web/ufficio-vercelli/ ufficio vercelli] [http://zodip.info/description/testi-e.htm testi e canzoni] [http://hangzhau.cn/html/fitness/ fitness] [http://zodip.info/description/mercedes-e.htm mercedes e sw] [http://zodip.info/description/dropout.htm drop-out] [http://puli.org.cn/web/consigli-investimento/ consigli investimento] [http://zodip.info/description/software-navigazione.htm software navigazione offline] [http://hangzhau.cn/html/lettini-con/ lettini con fasciatoio] [http://puli.org.cn/web/jerri-ryan/ jerri ryan] [http://puli.org.cn/web/puntoshop/ puntoshop] [http://zodip.info/description/freextv.htm freextv] [http://hangzhau.cn/html/nike-calcetto/ nike calcetto] [http://zodip.info/description/palmare-cellulari.htm palmare cellulari motorola] [http://italnet.net.cn/img/fondo-cometa/ fondo cometa] [http://italnet.net.cn/img/karoku/ karoku] [http://zodip.info/description/noche-loba.htm noche loba en vivo] [http://zodip.info/description/tv-fm.htm tv fm card] [http://puli.org.cn/web/www-valentinademy/ www valentinademy] [http://italnet.net.cn/img/messalina-venere/ messalina venere imperatrice] [http://italnet.net.cn/img/personal-domain/ personal domain names] [http://nibko.info/data/sarmalele-reci.htm sarmalele reci] [http://hangzhau.cn/html/masterizzatore-dvd/ masterizzatore dvd lite on] [http://zodip.info/description/kenwood-km.htm kenwood km] [http://zodip.info/description/ways-of.htm ways of luv] [http://hangzhau.cn/html/carosone-video/ carosone video] [http://puli.org.cn/web/import-cereali/ import cereali] [http://nibko.info/data/michaeljackson.htm michaeljackson] [http://italnet.net.cn/img/istituti-di/ istituti di ricerca di mercato] [http://puli.org.cn/web/film-scaricabili/ film scaricabili gratis in italiano] [http://nibko.info/data/proyectos.htm proyectos] [http://italnet.net.cn/img/acquista-casa/ acquista casa] [http://hangzhau.cn/html/albergo-/ albergo 5 stella vienna] [http://hangzhau.cn/html/la-lotta/ la lotta del sesso sei milioni di anni fa] [http://zodip.info/description/palazzolo.htm palazzolo] [http://hangzhau.cn/html/kaly/ kaly] [http://nibko.info/data/banni.htm banni] [http://zodip.info/description/dinamo-ja.htm dinamo ja volim] [http://italnet.net.cn/img/clomid-mg/ clomid 50mg 10 cpr] [http://zodip.info/description/chi-non.htm chi non lavora] [http://italnet.net.cn/img/donne-asia/ donne asia nude] [[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)C
- Cholesky decomposition
- Chowla numbers
- Church numerals
- Cipolla's algorithm
- Circles of given radius through two points
- Circular primes
- Cistercian numerals
- Classes
- Closest-pair problem
- Closures/Value capture
- Code Golf: Code Golf
- Code segment unload
- Collect and sort square numbers in ascending order from three lists
- Collections
- Color of a screen pixel
- Color quantization
- Color wheel
- Colorful numbers
- Colour bars/Display
- Colour pinstripe/Display
- Colour pinstripe/Printer
- Combinations
- Combinations and permutations
- Combinations with repetitions
- Comma quibbling
- Command-line arguments
- Commatizing numbers
- Comments
- Common list elements
- Common sorted list
- Compare a list of strings
- Compare length of two strings
- Compare sorting algorithms' performance
- Compiler/AST interpreter
- Compiler/code generator
- Compiler/lexical analyzer
- Compiler/Preprocessor
- Compiler/syntax analyzer
- Compiler/virtual machine interpreter
- Composite numbers k with no single digit factors whose factors are all substrings of k
- Compound data type
- Concatenate two primes is also prime
- Concurrent computing
- Conditional structures
- Conjugate a Latin verb
- Conjugate transpose
- Consecutive primes with ascending or descending differences
- Consistent overhead byte stuffing
- Constrained random points on a circle
- Continued fraction
- Continued fraction/Arithmetic/Construct from rational number
- Continued fraction/Arithmetic/G(matrix ng, continued fraction n)
- Continued fraction/Arithmetic/G(matrix ng, continued fraction n1, continued fraction n2)
- Convert decimal number to rational
- Convert seconds to compound duration
- Convex hull
- Conway's Game of Life
- Coprime triplets
- Coprimes
- Copy a string
- Copy stdin to stdout
- CORDIC
- Count how many vowels and consonants occur in a string
- Count in factors
- Count in octal
- Count occurrences of a substring
- Count the coins
- Count the coins/0-1
- Countdown
- Cousin primes
- Cramer's rule
- CRC-32
- Create a file
- Create a file on magnetic tape
- Create a two-dimensional array at runtime
- Create an HTML table
- Create an object/Native demonstration
- CSV data manipulation
- CSV to HTML translation
- Cuban primes
- Cubic special primes
- Cullen and Woodall numbers
- Cumulative standard deviation
- Currency
- Currying
- Curzon numbers
- CUSIP
- Cut a rectangle
- Cycle detection
- Cycles of a permutation
- Cyclops numbers
- Cyclotomic polynomial
D
- Damm algorithm
- Data Encryption Standard
- Date format
- Date manipulation
- Dating agency
- Day of the week
- Day of the week of Christmas and New Year
- Days between dates
- De Bruijn sequences
- De Polignac numbers
- Deal cards for FreeCell
- Death Star
- Deceptive numbers
- Decimal floating point number to binary
- Decision tables
- Deconvolution/1D
- Deconvolution/2D+
- Decorate-sort-undecorate idiom
- Deepcopy
- Define a primitive data type
- Delegates
- Delete a file
- Deming's funnel
- Department numbers
- Descending primes
- Detect division by zero
- Determinant and permanent
- Determine if a string has all the same characters
- Determine if a string has all unique characters
- Determine if a string is collapsible
- Determine if a string is numeric
- Determine if a string is squeezable
- Determine if only one instance is running
- Determine if two triangles overlap
- Determine sentence type
- Dice game probabilities
- Digit fifth powers
- Digital root
- Digital root/Multiplicative digital root
- Dijkstra's algorithm
- Dinesman's multiple-dwelling problem
- Dining philosophers
- Disarium numbers
- Discordian date
- Discrete Fourier transform
- Display a linear combination
- Display an outline as a nested table
- Distance and Bearing
- Distinct power numbers
- Distributed programming
- Distribution of 0 digits in factorial series
- Diversity prediction theorem
- Divide a rectangle into a number of unequal triangles
- DNS query
- Documentation
- Doomsday rule
- Dot product
- Double Twin Primes
- Doubly-linked list/Definition
- Doubly-linked list/Element definition
- Doubly-linked list/Element insertion
- Doubly-linked list/Traversal
- Dragon curve
- Draw a clock
- Draw a cuboid
- Draw a pixel
- Draw a rotating cube
- Draw a sphere
- Draw pixel 2
- Duffinian numbers
- Dutch national flag problem
- Dynamic variable names
E
- Earliest difference between prime gaps
- Eban numbers
- Echo server
- Eertree
- Egyptian division
- EKG sequence convergence
- Element-wise operations
- Elementary cellular automaton
- Elementary cellular automaton/Infinite length
- Elementary cellular automaton/Random number generator
- Elliptic curve arithmetic
- Elliptic Curve Digital Signature Algorithm
- Emirp primes
- Empty directory
- Empty program
- Empty string
- Enforced immutability
- English cardinal anagrams
- Entropy
- Entropy/Narcissist
- Enumerations
- Environment variables
- Equal prime and composite sums
- Equilibrium index
- Erdős-Nicolas numbers
- Erdős–Woods numbers
- Esthetic numbers
- Ethiopian multiplication
- Euclid-Mullin sequence
- Euclidean rhythm
- Euler method
- Euler's constant 0.5772...
- Euler's identity
- Euler's sum of powers conjecture
- Evaluate binomial coefficients
- Even numbers which cannot be expressed as the sum of two twin primes