Kuv
d56323d08e
Change string access example for clarity
...
'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.
2020-06-04 12:41:35 +05:30
amigos-maker
55ad60b7dd
Update python.html.markdown
...
added useful links
2020-05-26 18:11:58 -07:00
Adam Bard
7539720f13
fix en python again
2020-02-13 22:11:29 -08:00
Adam Bard
f63a137656
fix en python language
2020-02-13 22:06:16 -08:00
Simon Shine
ae848c481f
Python 3: Use 'filename: learnpython*.py' (no '3')
...
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/' {} \;
```
2020-02-12 07:04:42 +01:00
Simon Shine
efe00fd06e
Switch links: 'python3 <-> python' and 'python <-> pythonlegacy'
...
The list of references is exhausted by running 'ack docs/python'.
2020-02-12 05:03:08 +01:00
Simon Shine
a3b0585374
Rename Python 3 markdown files into 'python'
...
```
for f in $(find . -iname "*python3*" | grep -vE 'git'); do
fnew=$(echo "$f" | sed 's/python3/python/')
git mv "$f" "$fnew"
done
2020-02-12 04:54:36 +01:00
Simon Shine
1adab9bc3f
Rename Python 2 markdown files into 'pythonlegacy'
...
```
for f in $(find . -iname "*python*" | grep -vE 'python3|git|statcomp'); do
flegacy=$(echo "$f" | sed 's/python/pythonlegacy/')
git mv "$f" "$flegacy"
done
```
2020-02-12 04:53:08 +01:00
Streppel
cbcb987c53
[python/py3] Updating set info ( #3473 )
...
Updating set info to be more descriptive and informative
2019-02-16 23:37:14 +05:30
Anindya Srivastava
fa9f9fd563
Type correction for the output of math.sqrt()
...
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
2019-02-01 21:55:22 +05:30
Rommel Martinez
60fcfe8662
[python/en]: fix typo
2018-02-03 17:28:21 +08:00
Meisyarah Dwiastuti
3ffb8256ae
Add data type checking examples
2017-10-31 09:54:09 +01:00
Ian Bertolacci
6ec7fdc16b
[python/en] filled_dict
...
Address #2841
2017-09-07 13:26:46 -07:00
Amin Bandali
dba32328ee
Update my site's address ( #2712 )
2017-04-27 13:19:17 +02:00
Evan
b4ca1f76e2
Python decorators example added ( #2408 )
2017-02-09 16:57:30 +01:00
Adam Bard
79004c5b4a
Merge pull request #2571 from Smosker/patch-1
...
[python/en] Fix a bug
2017-02-01 13:56:43 -08:00
David Haberthür
4737819e5d
Made the file pep8
compliant ( #2601 )
...
Actually nearly compliant, I ran `pep8 code.py --ignore=E402,E501,E712`
2016-12-20 15:04:12 +01:00
Christopher Lorton
e25918acab
Fix comment in set comprehension example ( #2580 )
...
The result should be {'a', 'b', 'c'} (not {'d', 'e', 'f'}).
2016-11-21 10:38:39 +01:00
Smosker
ac6d64168f
Fix a bug
...
Should add return to double_numbers function, without it next expression wiil fall with "TypeError: 'NoneType' object is not iterable" error
for value in double_numbers(range(1000000)): # `test_non_generator`
print value
if value > 5:
break
2016-11-15 16:10:56 +04:00
J. Ryan Rembert
e053806775
[python/en] Set, dict, and generator comprehensions ( #2298 )
...
* Add set and dict comprehensions for python 2 and 3
* Clean up formatting and generator explanation
* Include documentation for generator comprehensions
2016-07-03 10:47:57 +02:00
Prashant Khanduri
0387bd30fc
Generator explanation for python ( #1870 )
...
More details and code on the same example as before.
2016-06-26 14:50:05 +02:00
Devin Soni
912d546dc7
add dict.items() ( #2290 )
2016-06-26 14:30:39 +02:00
ven
b3b5ece63c
String length by @thesourabh
2016-06-16 15:18:30 +02:00
Divay Prakash
5f89f277b9
fixed whitespaces & content extending beyond 80 chars
2016-03-18 12:23:18 +05:30
ven
2c94436824
Merge pull request #1288 from DaKnOb/fixpymod
...
[python/en] Add note about Python Module Order of Import
2016-03-10 23:00:50 +01:00
sarthfrey
39c83718b1
removed merge stuff
2016-01-25 18:34:25 -05:00
sarthfrey
279c28ce7d
Merge remote-tracking branch 'adambard/master'
...
# Conflicts:
# python.html.markdown
2016-01-25 18:26:23 -05:00
Geoff Liu
24e520a3cc
Merge pull request #1790 from jxu093/master
...
Added Python Resource
2015-12-18 17:30:53 -05:00
sarthfrey
299d064ecf
Added Python Resources
2015-12-16 16:41:07 -05:00
Aayush Ranaut
dc675a47ed
Merged and removed confusing comments in python
2015-12-05 11:10:16 +05:30
EL
a4a7b2dd83
fixed unintended opposite meaning
2015-11-02 16:30:15 +03:00
Aayush Ranaut
0049a475ed
Removed confusing comments
2015-10-31 22:20:51 +05:30
Spurlow
0e2b669c17
Merge pull request #1847 from cnu/master
...
Add one more string formatting example
2015-10-31 19:24:19 +08:00
Adam Bard
15c9543ebc
Merge pull request #1898 from yihongang/python_truthiness
...
add more details on truthiness
2015-10-31 19:02:26 +08:00
Adam Bard
4f1b8654a0
Merge pull request #1927 from TheRakken/patch-1
...
[python] Minor correction
2015-10-31 18:19:38 +08:00
Elijah Karari
ab1acb1bb2
Updated tuple examples for clarity
2015-10-31 09:56:06 +03:00
Elijah Karari
5bda926dcc
Minor correction
...
calling li.index(2) with li as [1, 2, 3, 4, 5, 6] will return 1 not 3
2015-10-31 09:47:55 +03:00
yihong
14c85ba0ff
add more details on truthiness
2015-10-30 05:04:41 +08:00
Geoff Liu
ba4cbab87a
Merge pull request #1676 from vipulroxx/patch-1
...
Modified string format [python/en]
2015-10-29 23:26:59 +08:00
Vipul Sharma
cdd64ecee3
80 char and proper commenting
2015-10-29 15:23:37 +05:30
Srinivasan R
db903ac5b6
Add one more string formatting example
2015-10-28 16:25:54 +05:30
jxu093
e60a7d73e8
Added Python Resource
2015-10-25 22:19:40 -04:00
payet-s
b238a58c97
[python/en] Fix typos
2015-10-22 12:49:49 +02:00
Vipul Sharma
a6eb459b61
Modified string format [python/en]
2015-10-20 09:57:53 +05:30
MDS
c60ddc6ef5
Updated official python docs to always use the latest version of python 2
2015-10-20 01:01:14 +13:00
Levi Bostian
3d70c872e4
Merge pull request #1560 from ankitaggarwal011/python27-ternary-operator-doc-add
...
[python/en] Adding documentation on ternary operator
2015-10-18 12:15:55 -05:00
Levi Bostian
a3db78c73d
Merge pull request #1489 from evuez/patch-2
...
[python/en] Add some stuff to lists, tuples, dicts, sets and classes
2015-10-18 12:07:53 -05:00
Ankit Aggarwal
451ccaec5b
Adding documentation on ternary operator
2015-10-16 20:42:03 +05:30
evuez
85adff2c39
Merge 'master' of github.com:adambard/learnxinyminutes-docs
2015-10-16 10:42:41 +02:00
viv1
a9bcaffd36
[python/en]...Added some info on division
2015-10-16 12:57:31 +05:30