Python
1 program
Added 2025-10-22T09:45:48Z
Model: meta-llama/llama-3.1-70b-instructTemp: 0.4
Evidence
Report issue
View issues
Aliases: Py
Provenance: commit f11bdc136f · authored 2025-10-22T11:45:48+02:00 · model meta-llama/llama-3.1-70b-instruct
Sources mentioning this language
8 sources · pl_id:
pl/pythonWikipedia infobox ↗
Pulled from the
wikimedia/structured-wikipedia
snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and
pl_fact.csv for the long-table provenance.
| Paradigms | multi-paradigm: object-oriented · procedural (imperative) · functional · structured · reflective |
|---|---|
| Typing | duck, dynamic, strong; optional type annotations |
| Designed by | Python Software Foundation · Guido van Rossum |
| First appeared | 1991 |
| Influenced by | ABC · Ada · ALGOL 68 · APL · C · C++ · CLU · Dylan · Haskell · Icon · Lisp · Modula-3 · Perl · Standard ML |
| License | Python Software Foundation License |
| Homepage | https://www.python.org/ |
Extensions claimed by this language
37 claims. Each row is one upstream assertion with its strength.
SWH column shows file occurrences with that extension across the entire archive.| Extension | Source | Strength | SWH |
|---|---|---|---|
.py | linguist | primary | 455.0M files |
.py | pygments | primary | 455.0M files |
.buck | pygments | secondary | 197 files |
.build | pygments | secondary | 1.1M files |
.bzl | pygments | secondary | 376.5K files |
.cgi | linguist | secondary | 461.7K files |
.fcgi | linguist | secondary | 11.6K files |
.gyp | linguist | secondary | 184.6K files |
.gypi | linguist | secondary | 346.8K files |
.jy | pygments | secondary | 5.0K files |
.lmi | linguist | secondary | 91 files |
.py3 | linguist | secondary | 17.5K files |
.pyde | linguist | secondary | 35.6K files |
.pyi | linguist | secondary | 844.5K files |
.pyi | pygments | secondary | 844.5K files |
.pyp | linguist | secondary | 2.5K files |
.pyt | linguist | secondary | 11.0K files |
.pyw | linguist | secondary | 114.6K files |
.pyw | pygments | secondary | 114.6K files |
.rpy | linguist | secondary | 384.6K files |
.sage | pygments | secondary | 53.5K files |
.sc | pygments | secondary | 588.1K files |
.sconscript | pygments | secondary | 2.0K files |
.sconstruct | pygments | secondary | 255 files |
.spec | linguist | secondary | 6.1M files |
.tac | linguist | secondary | 63.6K files |
.tac | pygments | secondary | 63.6K files |
.workspace | pygments | secondary | 68.3K files |
.wsgi | linguist | secondary | 48.8K files |
.xpy | linguist | secondary | 1.2K files |
.py | wikidata | deprecated | 455.0M files |
.pyc | wikidata | deprecated | 521.5M files |
.pyd | wikidata | deprecated | 430.4K files |
.pyi | wikidata | deprecated | 844.5K files |
.pyo | wikidata | deprecated | 1.4M files |
.pyw | wikidata | deprecated | 114.6K files |
.pyz | wikidata | deprecated | 47.0K files |
Related languages
LLM-contributed programs
Guessing Game
Provenance: commit f11bdc136f · authored 2025-10-22T11:45:48+02:00 · model meta-llama/llama-3.1-70b-instruct · Temp 0.4
import random
number_to_guess = random.randint(1, 10)
while True:
user_guess = int(input('Guess our number (between 1 and 10): '))
if user_guess == number_to_guess:
print('Congratulations! You won!')
break
elif user_guess < number_to_guess:
print('Too low!')
else:
print('Too high!')
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)
Disambiguation rules
Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
| Rule | Ext | Kind | Predicates (truncated) |
|---|---|---|---|
h/linguist/.rpy/0 | .rpy | predicates | [{"kind": "any", "regexes": ["^(import|from|class|def)\\s"]}] |