Joseph G
56258dfb72
Add f-string clarification.
2018-10-11 14:10:16 -07:00
Roberto Fernandez Diaz
04de3a348a
Clarification about sets
...
I indicate that a set doesn't contain duplicate elements and add a little example
2018-08-07 11:01:04 +02:00
理絵子
b6aed7a0b3
added example for f-string
...
Literal string interpolation is new in python 3.6 [pep-0498](https://www.python.org/dev/peps/pep-0498/ )
2018-07-29 11:53:33 +09:00
qzhangjhu
50f93a94d4
Corrections on Python3 page
2018-02-28 10:08:29 -05:00
Pratik Karki
1e88ceb05a
Merge pull request #3057 from ebzzry/fix-typo
...
[python3/en]: fix typo
2018-02-28 18:53:15 +05:45
Rommel Martinez
213019c689
[python3/en]: fix typo
2018-02-03 18:08:24 +08:00
Aswin Sanakan
3386171160
Fix omitting in list and clarified comments
2017-12-05 12:24:43 +05:30
Keith Miyake
55efb934b8
python3/en cleanup for single inheritance merge
2017-10-23 15:11:13 -07:00
Keith Miyake
9b6d84309c
[python3/en] Add single inheritance section
2017-10-19 22:26:32 -07:00
Alfonso Millan
e78e41ce30
Update python3.html.markdown ( #2776 )
2017-06-29 10:36:01 +02:00
Ned Batchelder
9ccd1ee05a
Some improvements to Python 3 ( #2713 )
2017-05-18 12:40:25 +02:00
Adam Bard
e901344c04
[Python] Slightly tweak ** example
...
2^4 == 4^2, 2^3 seems a bit less ambiguous as an example for exponentiation.
2017-04-05 12:02:35 -07:00
Ankush Aggarwal
82c3ce4e8c
add underscore to property ( #2691 )
...
property is exposed using setter and getters
2017-03-28 10:21:18 +02:00
Andrew Lee
eba9d9ffe5
Updated mistake in Python3/en tutorial ( #2678 )
...
A fix on static method section (around line 728).
Specifically, i.grunt() should raise an error since grunt() is a static method and 'i' is an instance of the class.
2017-02-28 17:15:36 +01:00
lilhandsbgdreams
56a18f79cf
[python3/en] Fix two "getter" output examples ( #2658 )
2017-02-16 09:41:16 +01:00
Adrian Sieber
870e2fbf6d
Fix omitting end / beginning in ranges ( #2649 )
2017-02-10 08:58:10 +01:00
ghostduck
05e4c41cb3
[python3/en] Add examples to Bool operators with ints ( #2639 )
2017-01-28 10:38:26 +01:00
kakakaya
c701931fee
[python3/en] fixed "StopIterator", no such Exception ( #2591 )
...
* [python3/en] Add empty tuple to "False if evaluated" list
* [python3/en] Fixed "StopIterator Exception" - no such exception
2016-12-03 11:46:32 +01:00
kakakaya
d0918b2576
[python3/en] Add empty tuple to "False if evaluated" list ( #2587 )
2016-11-30 13:01:27 +01:00
Foo Chuan Wei
e837e25a70
[python3/en] Edit python3 division ( #2560 )
...
The result of division is always a float.
e.g.
35/5 = 7.0
10 / 3 = 3.3333333333333335
10.0 / 3 = 3.3333333333333335
10 / 3.0 = 3.3333333333333335
2016-11-09 19:16:06 +01:00
Harry Moreno
e68bf145bc
Add python3 class notes ( #2479 )
...
* explain that you can place the human and bat classes into seperate
files
* explain how to import specific functions from other files
2016-10-20 23:08:44 +02:00
Srinivas Gorur-Shandilya
8905c0c5bc
[python3] updated docs on division for python3 ( #2473 )
...
* updated docs on division for python3
prev. docs were confusing, did not show how to actually divide.
* modified language about python division
* fixed grammar
2016-10-20 15:57:55 +02:00
ven
5bebeff0c3
Update python3.html.markdown
2016-10-04 15:40:48 +02:00
Subhrajyoti Sen
048163b7bf
Update python3.html.markdown ( #2381 )
2016-09-21 17:07:24 +02:00
Patrick Callahan
2067ad6a52
[Eng/Python3] add new book: "Learn Python 3.0 VISUALLY" ( #2360 )
...
* add new book
* sanitized link
2016-09-06 18:57:47 +02:00
PhoenixYip
48ca03c3f9
correction for the set comprehension in py3 ( #2358 )
2016-09-06 10:38:47 +02:00
Patrick Callahan
7beaa529b9
[python3/en] Adding "Dive Into Python 3" ( #2353 )
...
The previous version of this file had the original Dive Into Python, which was written with Python 2 in mind.
It has come to my attention that the author of the original has published an updated version designed for Python 3, so I added this version back in.
2016-09-01 23:27:33 +02:00
Patrick Callahan
678fa3b974
Remove Python 2 resources from Python 3 page ( #2350 )
...
There were several resources here that teach Python 2, but not Python 3. I removed them so that a reader will only see resources that apply to Python 3.
2016-09-01 08:28:23 +02: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
Alexandre Constantino
e72c849556
Python3/en: multiple inheritance ( #2217 )
...
* Add __name__ check to make testing easier
* Update say to call print. Add more usage examples
* Move Modules section before Classes
Makes more sense for when explaining inheritance
* Add multiple inheritance example
* Add examples for multiple inheritance
* Add instance check examples
* Fix multiple inheritance example
* Add note on the __name__ variable
2016-06-26 15:22:47 +02:00
ven
5affe64801
String length by #1742
2016-06-16 15:19:43 +02:00
Adam Bard
f75cb997b0
Update python3.html.markdown
...
Remove TODO
2016-03-30 13:04:32 -07:00
Alfredo Canziani
6248cd1f84
Update python3.html.markdown
...
The same happens for `filter`.
```pythob
filter(lambda x: x > 5, [3, 4, 5, 6, 7])
<filter at 0x110567320>
list(filter(lambda x: x > 5, [3, 4, 5, 6, 7]))
[6, 7]
```
2016-03-30 11:24:05 -04:00
Alfredo Canziani
9dca295c05
Update python3.html.markdown
...
`map` requires `list` in order to convert the mapping to its list. E.g. `<map at 0x11057ce48>` to `[11, 12, 13]`.
2016-03-30 11:17:12 -04:00
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
Adam Bard
582a205219
Merge pull request #1643 from ankitaggarwal011/python3-ternary-operator-documentation-add
...
[python3/en] Adding documentation on ternary operator
2016-02-14 22:53:51 -08:00
sarthfrey
279c28ce7d
Merge remote-tracking branch 'adambard/master'
...
# Conflicts:
# python.html.markdown
2016-01-25 18:26:23 -05:00
SWalls
15a7e7ace2
Changed a to b in comment about list assignment, and pluralized 'variable'.
2016-01-10 17:22:32 -07:00
sarthfrey
299d064ecf
Added Python Resources
2015-12-16 16:41:07 -05:00
Louis Christopher
3c4a2ff91c
Fixed erroneous output and added a little clarity on the matter
...
list.index(argument) would return the index of the item in the list that first matched the argument
It will not return the value stored at the index of the argument as it was prior.
Added some more clarity to the subject as well.
2015-11-21 19:44:23 +05:30
Louis Christopher
30e364f410
Fixed erroneous output stated in a comment
...
range( start = lower limit, End is < Upper limit , Step)
The upper limit is never printed. Fixed the error.
2015-11-21 19:28:59 +05:30
Leslie Zhang
646eb2a2a1
Correct math.sqrt(16)
...
math.sqrt(16) returns 4.0 instead of 4
2015-11-07 16:57:44 +08:00
Ankit Aggarwal
d2d89cfa97
Adding documentation on ternary operator
2015-10-19 11:47:24 +05:30
evuez
85adff2c39
Merge 'master' of github.com:adambard/learnxinyminutes-docs
2015-10-16 10:42:41 +02:00
Ankit Aggarwal
a8b32c362b
Added instructions for input operations in Python3
2015-10-14 21:16:18 +05:30
Levi Bostian
ae4e4e81f4
Merge pull request #1504 from dillonjbyrne/patch-1
...
[python3/en] Cleaned up formatting and clarified output
2015-10-14 09:42:55 -05:00
Dillon J Byrne
518a383de1
Cleaned up formatting and clarified output
...
Unified the formatting throughout the document, clarified the output of a few lines, and tried to make it easier to visually separate comments from code when reading.
2015-10-13 20:03:46 -05:00
evuez
8166438016
Add PEP8 to "Free Online"
2015-10-13 17:11:40 +02:00
evuez
46ef132ce6
Add resources to the "Free Online" section
...
These have been valuable resources to me, but I'm not sure
whether it fits this section or not.
2015-10-13 17:05:18 +02:00
evuez
ed4fbb6aa4
Add property to Classes
...
This adds the property decorator (getter, setter, deleter) to the class example.
Also update scopes functions to fit PEP8.
2015-10-13 16:53:48 +02:00