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
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
evuez
df5d2adbfe
Update contributors
2015-10-13 16:04:02 +02:00
evuez
f77199b780
Add some stuff to lists, tuples, dicts and sets
...
Lists: added `remove`, `insert` and `index`
Tuples: added extended unpacking
Dictionaries: added new unpacking from Python 3.5
Sets: added ^, <=, >= operators
2015-10-13 15:09:38 +02:00
Levi Bostian
133baf5565
Merge pull request #1478 from aayushranaut/master
...
Range is not a generator
2015-10-12 23:27:30 -05:00
Gnomino
097c839b7b
Changed way of creating classes
2015-10-11 13:47:44 +02:00
Aayush Ranaut
7d8bab656f
Range is not a generator
2015-10-09 18:48:40 -04:00
Levi Bostian
b5ffe569ef
Merge pull request #1305 from kdelwat/master
...
[python3/en] Added examples of multiple parameters to higher order functions
2015-10-09 10:04:51 -05:00
Gabriel Halley
960ee4a185
removing whitespace all over
2015-10-07 23:11:24 -04:00
Cadel Watson
777423dcc5
Add examples of higher-order functions taking multiple arguments
2015-10-07 17:01:28 +11:00
Levi Bostian
bb02567725
Merge pull request #1306 from zfergus2/master
...
[python3/en] edits and additions
2015-10-05 13:14:09 -05:00
Zachary Ferguson
5225372045
Fixed whitespaces
...
Fixed the spacing to conform with standards.
2015-10-04 19:58:14 -04:00
VeerpalB
82bdd1b1c8
Add step parameter to range function
...
A description of the step parameter of the range function is added. An example of its use in a for loop is also given.
2015-10-04 19:41:13 -04:00
Zachary Ferguson
7184d7b61d
Changed [python3/en]
...
Compared is and ==.
Noted that tuples of length 1 require an ending
comma.
Discussed that keys of dictionaries have to be immutable.
Added
that elements of a set have to be immutable.
Included an explanation of
returning multiple values with tuple assignments.
Added some clarifying
remarks to comments.
2015-10-02 17:24:36 -04:00
Foo Chuan Wei
1ccebdf972
Update python3.html.markdown
2015-09-05 21:26:22 +08:00
Foo Chuan Wei
11749e1ba0
Corrected Python3 print() function
2015-09-05 11:10:18 +08:00
Denis Gladkikh
1b767166e1
Python3: add finally and with statements
2015-09-01 10:25:04 -07:00
Genki Marshall
ac2dfe7dc7
[python3/en] Use next()
instead of __next__()
...
Fixes issue #1148 .
The reasoning is well explained by the issue. One can also refer to the
docs [0], showing it is more idiomatic to use `next()`.
[0]: https://www.python.org/dev/peps/pep-3114/
#double-underscore-methods-and-built-in-functions
2015-07-24 13:21:01 -07:00
Al Sweigart
8a968db2bc
Added links to the free book "Automate the Boring Stuff with Python" to the "Free Online" section.
2015-07-23 11:24:40 -07:00
Michael Herman
5b66758d76
Update python3.html.markdown
2015-07-05 21:12:58 -06:00
Michael Herman
55f9ff0654
python/en - added two resources
2015-07-05 08:36:51 -06:00
Geoff Liu
ffc5ac247c
Python3 doc cleanup
2015-04-30 23:44:09 -06:00
Sriram Sundarraj
8cfb7ba02f
[python/en] Range function arguments.
...
Range function with start and stop.
2015-04-23 02:06:43 +05:30
Sriram Sundarraj
d20eb1fb94
Adding strings without + added.
2015-04-23 01:48:18 +05:30
Cornel Punga
44c37d5531
[python3.html.mardown] Added a short statement about magic methods
...
Terminology related to Python special functions
2015-03-24 19:26:19 +02:00
Cornel Punga
7e7a60d47c
Update python3.html.markdown. Changes to spacing and online resources
...
1. Some changes related to spacing
2. Added an online resource
2015-03-24 12:29:01 +02:00
suuuzi
f4bd1bc8b4
Python 3: Changing 'the other tutorial' to a link refering the other tutorial
2015-02-04 15:32:55 -02:00
ven
ea929d6094
Merge pull request #897 from maniexx/master
...
PYTHON3: Delete PYMOTW3 due to lack of content
2014-12-22 15:29:07 +01:00
maniexx
674284cfcb
Delete PYMOTW3 due to lack of content
2014-12-22 15:24:09 +01:00
Jack Hooper
38cf765079
Apostrophe fixes as per Python 2 tutorial
2014-11-12 02:04:50 +11:00
Andre Polykanine A.K.A. Menelion Elensúlë
68c9aed134
Corrected as per @iirelu's comment
2014-10-09 23:06:24 +03:00
Andre Polykanine A.K.A. Menelion Elensúlë
39d8753d52
[python/en] Adding exponentiation operator
2014-10-09 22:49:47 +03:00
Steven Basart
820eebcd33
[python3/en] Bool operators
...
Bool operators
2014-09-07 19:23:07 -04:00
Steven Basart
9a909d6a4a
Added Boolean operators and lowered line lengths
...
Added Bool operators and and or, and lowered some line lengths. Also shifted some notes above the code lines to keep with same style and help readability. Also added a note on list comprehension. Also added adding to dictionary.
2014-09-07 02:39:31 -04:00
Louie Dinh
83b63aab54
Fix a long line.
2014-08-21 15:38:50 -07:00
Evgeniy Ginzburg
cb3217fc35
Merge https://github.com/adambard/learnxinyminutes-docs
...
Added two minor changes in integer division to make it clear
2014-08-06 23:45:44 +03:00
Evgeniy Ginzburg
7bcf65278c
comment about floats in integer division
2014-08-06 23:45:37 +03:00
Mikael E. Wikner
a30c76789e
Added changes to the python3 file aswell
2014-08-06 00:20:24 +02:00
Evgeniy Ginzburg
611a00b510
Merge https://github.com/adambard/learnxinyminutes-docs
2014-08-05 17:41:41 +03:00
Evgeniy Ginzburg
57036f128f
aded negative integer division
2014-08-05 17:41:28 +03:00
Shashwat986
abc06a620b
Update python3.html.markdown
...
Added more info to try/except. Corrected some trivial bugs.
2014-08-03 21:56:26 +05:30
Adam Brenecki
164cf1ce78
Mention that Python 2.5-style string formatting still works in 3
2014-07-16 10:25:03 +09:30