summaryrefslogtreecommitdiffhomepage
path: root/python.html.markdown
Commit message (Collapse)AuthorAgeLines
* [python/en] Correct floor division examples (#4993)tomaszn2024-07-04-1/+1
|
* [python/en] "rounds down" -> "rounds towards zero" (#4944)Boris Verkhovskiy2024-05-13-1/+1
|
* [python/en] Clarify inheritance description (#4759)Stanislav (Stanley) Modrak2024-05-13-2/+2
|
* [python/*] proofread en and ru and all linksBoris Verkhovskiy2024-04-26-90/+87
|
* [python/*] remove feedback email requestBoris Verkhovskiy2024-04-07-4/+0
|
* Remove leading and trailing empty lines in code blocksBoris Verkhovskiy2024-04-06-2/+0
|
* Merge branch 'master' into patch-1Boris Verkhovskiy2024-04-03-73/+144
|\
| * typo in learn x in y minutes python page (#4812)bkkavin2023-12-18-1/+1
| |
| * [python/en] adding an example for closures in python where we use the ↵Mohammed Ashour2023-12-14-0/+16
| | | | | | | | | | | | | | | | | | `nonlocal` … (#4033) * adding an example for closures in python where we use the `nonlocal` keyword Adding an example for the case of nested functions with closure scopes, when we use the python 3s keyword 'nonlocal' to point to the variables in the outer functions * Formatting Comments
| * Update python.html.markdown (#4228)Carlos Tafur2023-12-14-1/+1
| | | | | | I read somewhere that conventions in naming variables are snake_case and camelCase.
| * Clarify args and kwargsStanislav (Stanley) Modrak2023-09-21-1/+1
| |
| * Fix incorrect expression descriptionStanislav (Stanley) Modrak2023-09-20-1/+1
| |
| * Update expected results for ceil and floor (#4747)triumphantomato2023-09-08-2/+2
| | | | | | ceil and floor return ints not floats - check in repl or the python3 docs here: https://docs.python.org/3/library/math.html
| * [python/en] add hint about leading underscore indicating internal use (#4748)triumphantomato2023-09-08-1/+3
| |
| * [python/en] Updated Decorator and wrapping explanation (#4749)triumphantomato2023-09-08-17/+53
| | | | | | Now it includes motivation, an explanation of functools.wraps, and demonstrates the utility of wrapping.
| * Clarify "Method Resolution Order" (#4687)Stanislav (Stanley) Modrak2023-08-25-3/+3
| |
| * Merge branch 'master' into patch-4Stanislav (Stanley) Modrak2023-03-08-38/+50
| |\
| | * removed tutorial that no longer existsJohn Paul Wohlscheid2023-02-15-1/+1
| | |
| | * Add missing json importMarcel Ribeiro Dantas2022-12-01-0/+1
| | |
| | * remove overly long lines by edit of contentNorwid Behrnd2022-11-08-21/+21
| | | | | | | | | | | | | | | Light rephrasing to stay within the constraint of 80 chars/line. The cross links at the end of the document are not affected.
| | * remove overly long lines by additional line breaksNorwid Behrnd2022-11-08-13/+16
| | | | | | | | | | | | | | | The threshold of a line considered as too long is 80 characters per line. Changes introduced only alter the use of line breaks.
| | * Update python.html.markdownStanislav (Stanley) Modrak2022-10-26-2/+4
| | |
| | * Update python.html.markdownStanislav (Stanley) Modrak2022-10-26-0/+1
| | |
| | * Update python.html.markdownStanislav (Stanley) Modrak2022-10-26-1/+7
| | |
| * | Update python.html.markdownStanislav (Stanley) Modrak2022-10-26-1/+2
| |/
| * remove duplicate truthy falsy explanationGregory Inouye2022-10-20-9/+0
| |
| * Clarify casting and move bool() method sectionStanislav (Stanley) Modrak2022-08-28-2/+14
| |
| * Add sets to empty things that are falseStephan Spindler2022-07-27-6/+7
| |
* | Python Update `open` File Open `mode`Tanay Parikh2022-06-19-4/+4
|/ | | Per https://docs.python.org/3.7/library/functions.html#open, the `+` is for `open a disk file for updating (reading and writing)`. Per the example, if we're looking to just read/write, the `+` isn't necessary.
* Update python.html.markdown (#4257)benjaminjamesrussell2021-10-28-0/+1
|
* Fix tiny typoskrotera2021-01-15-2/+2
|
* Update links谭九鼎2020-10-20-7/+7
|
* [python/en] some clean up, add a Modulo example谭九鼎2020-10-20-9/+9
|
* [python/en] Update class example on invoking static methods from class instance.Angeo Rohit2020-10-01-3/+2
|
* improved demo of `if` expressionkevinnls2020-08-05-1/+1
|
* Merge pull request #3953 from sumanstats/masterMax Schumacher2020-07-07-8/+8
|\ | | | | [language/raku-code] Perl6 to Raku and many more
| * Reflect perl6 to raku renamesumanstats2020-06-15-8/+8
| | | | | | | | | | | | | | + As mentioned here: https://github.com/Raku/problem-solving/blob/master/solutions/language/Path-to-Raku.md perl6 is renamed to raku + change references of perl6 to raku + change extension from .p6 to .raku + fix the link of raku advent calendar
* | Change string access example for clarityKuv2020-06-04-1/+1
|/ | | 'T' was apparently mistaken by someone for True, so this is a minor edit to use a different example to make sure that doesn't happen again.
* Update python.html.markdownamigos-maker2020-05-26-0/+2
| | | added useful links
* fix en python againAdam Bard2020-02-13-1/+1
|
* fix en python languageAdam Bard2020-02-13-1/+1
|
* Python 3: Use 'filename: learnpython*.py' (no '3')Simon Shine2020-02-12-1/+1
| | | | | | | | | | | | | | | | | | | | Before renaming, Python 3 filenames were 'learnpython3*.py'. This commit removes the '3' part from the filename. To verify that the filenames were named consistently across translations prior to this commit, and to change this: ``` ack -H 'filename:' python.html.markdown find . -name "python-*.markdown" -exec ack -H 'filename:' {} \; sed -i 's/^filename: learnpython3/filename: learnpython/' \ python.html.markdown find . -name "python-*.markdown" -exec \ sed -i 's/^filename: learnpython3/filename: learnpython/' {} \; ```
* Switch links: 'python3 <-> python' and 'python <-> pythonlegacy'Simon Shine2020-02-12-1/+1
| | | | The list of references is exhausted by running 'ack docs/python'.
* Rename Python 3 markdown files into 'python'Simon Shine2020-02-12-0/+1042
| | | | | | | | ``` for f in $(find . -iname "*python3*" | grep -vE 'git'); do fnew=$(echo "$f" | sed 's/python3/python/') git mv "$f" "$fnew" done
* Rename Python 2 markdown files into 'pythonlegacy'Simon Shine2020-02-12-827/+0
| | | | | | | | | ``` for f in $(find . -iname "*python*" | grep -vE 'python3|git|statcomp'); do flegacy=$(echo "$f" | sed 's/python/pythonlegacy/') git mv "$f" "$flegacy" done ```
* [python/py3] Updating set info (#3473)Streppel2019-02-16-1/+2
| | | Updating set info to be more descriptive and informative
* Type correction for the output of math.sqrt()Anindya Srivastava2019-02-01-1/+1
| | | Both in Python 2.7.10 and Python 3.6.5, math.sqrt() returns a float and not int. It seems like a tiny thing but sometimes may lead up to bigger confusions. For example: https://stackoverflow.com/questions/54474037/why-are-the-following-codes-giving-me-different-output-square-root-big-numbers/54475501#54475501
* [python/en]: fix typoRommel Martinez2018-02-03-3/+4
|
* Add data type checking examplesMeisyarah Dwiastuti2017-10-31-0/+6
|
* [python/en] filled_dictIan Bertolacci2017-09-07-1/+1
| | | Address #2841