Commit Graph

240 Commits

Author SHA1 Message Date
Mukesh Jha
d7918dbc00 Added the way to modify immutable string. (#25334)
* Added the way to modify immutable string.

* Formatting changes
2018-12-18 22:24:09 -05:00
qme1519
932fc1d56b Content and language check (#25253)
New instructions added, language checked
2018-12-18 22:07:28 -05:00
DanSLuong
0afe892563 fix(guide): Edited the formatting for readability (#32574) 2018-12-18 15:50:19 +05:30
Utkarsh Raghav
e84bd33ca9 Added string formatting (#26695)
Included the String formatting function/method to the above list.
2018-12-17 15:12:56 +05:30
AAKANKSHACHOUHAN
199ebeaef6 Add the text "software" , "operating through" (#25212)
Add the text "system" , "since it is also an environment manager"
2018-12-16 01:36:48 -05:00
Amoghmule
26c407b7cd added set function example (#25103)
* added set function example

added one example that how we can convert list to set by set function

* Added formatting and code output
2018-12-15 22:15:52 -05:00
girraj jangid
15d1acc82e Add the changes text to file (#24968)
* Add the changes text to file

* add changes to this article
2018-12-14 22:35:45 -05:00
Bradley
960e725f91 Added the cheat sheet (#24899)
* Added the cheat sheet

Added the Anaconda cheat sheet for easy access to important information about Conda.

* Moved change to "more information"
2018-12-14 22:16:37 -05:00
himanshu07070
9d1c82225a Update index.md (#30140)
changes in the output
2018-12-13 14:49:57 -08:00
shilpi03
b918547c24 keywords (reserve words ) in python (#25949) 2018-12-13 14:49:23 -08:00
Corey Abma
723fa03609 update: added additional note fields (#29551)
* fix: corrected placement of notes

Some "note" fields were preemptive in their placement; I corrected their placement to be in more appropriate locations.

* update: added additional note fields

Added some additional "note" fields to assist those who are reading through the PHP documentation.

* fix: formatting of escape sequence examples

The formatting was a bit jumbled, so I cleaned up the formatting of the escape sequence.

* update: improved examples

I added a new example to demonstrate the use of a "break" statement in a while loop, as well as numbered each example.

* update: add clarifying statement

I added a note at the end of the description, with the goal of being a bit more explicit in terms of what the "continue" statement does.
2018-12-13 00:51:39 -08:00
none2serious
9d41ca47f1 Add Python 3.x print example (#24624) 2018-12-12 10:25:59 -05:00
Sherrie L. Fuqua
7342084a3a Edited for grammar, readability and markdown (#33026)
Grammar and readability edits, converted HTML links to markdown, made headings consistent, added some material.
2018-12-11 15:15:42 -07:00
raviram
31bc19174f Added example of absolute value of complex number (#23638) 2018-12-11 14:43:20 -05:00
Angelisa
59799e3cb6 Adjust punctuation & sentence structure (#31638) 2018-12-11 11:03:50 -07:00
OhSnapitsMikel
c1ac8b2eb7 Added Resource pypi (#31549) 2018-12-11 10:33:10 -07:00
brinkstock
d0552904cf Rewording some sentences (#31395)
Increasing the clarity of some of the sentences and removing some grammatical errors.
2018-12-11 10:09:05 -07:00
Maulik Rathod
2234afb55e Add some information in Things you can do with python (#31145)
Add some information in "Things you can do with python"
2018-12-11 09:51:24 -07:00
Vembar Varun
67127904cd Cleanup 'additional references' (#29622)
Existing links were either not free(LPTHW), classes to computer science(edx,udacity).
2018-12-11 09:46:16 -07:00
codestin
386b993f24 Update index.md with grammatical improvements (#28853) 2018-12-11 09:14:43 -07:00
Smit1701
bb78b3dd13 Update in Pros. (#28414) 2018-12-11 08:51:25 -07:00
Anatoly Makeyev
9443360a31 Added a quote from a great Python book author, Michael Dawson, on Why… (#28188)
* Added a quote from a great Python book author, Michael Dawson, on Why to choose Python

* fix: formatting/spelling
2018-12-11 08:20:35 -07:00
Andrew
150cbab8ed updated python install for Mac (#27861) 2018-12-10 20:41:18 -07:00
Sophia
51c6d8c0ec Add "pro, 4 and con, 3" (#27244)
4. Python is great for people new in coding. The mechanics of it is basic enough to understand yet complex enough to use on multi platforms.

3. White space can confuse beginners as spaces change depending on the program.
2018-12-10 19:57:38 -07:00
hdquemada
446f2de382 Corrected grammar and typographical errors (#24530) 2018-12-10 19:42:23 -07:00
Ananay Sharma
22da9b9715 Adding more info about Python3 (#24129)
Updated Installation to add a link for Python3.x installation on Linux.
2018-12-10 19:19:21 -07:00
Carlos Arcenas
1ce0aba184 Improve language in python/commenting-code (#24421) 2018-12-10 18:38:53 -05:00
Carlos Arcenas
c8ddc22d57 Improve language in python-2-vs-python-3 (#24425) 2018-12-10 18:30:09 -05:00
Boopathiking
a6ab0714e4 Wrongly mentioned, so interchanged the comments (#24370) 2018-12-08 21:53:21 -05:00
Karol Gasparik
5d5a29649f update: lambda expression example for python sort (#26044)
Added example that use lambda expression as key during sorting list.
2018-12-08 12:33:36 -07:00
Sean Riley
ca96fd91a6 Minor grammar and syntax corrections. (#23177) 2018-12-08 09:04:04 +07:00
Kaunaj Banerjee
88f400af91 Correct some typos (#30981)
- 'index' should be 'indexed'
- 'contain' should be 'contains'
- 'heterogenuous' should be 'heterogeneous'
2018-12-07 04:28:06 -05:00
girraj jangid
c0c3c4c624 Add 'changes' to this article (#25019)
* Add 'changes' to this article

* add changes to this file
2018-12-07 04:04:54 -05:00
Kyle Cheng
2791586935 Update index.md (#34120) 2018-12-05 14:14:46 -08:00
Aman Ranjan Verma
f6bc110216 Added explantion on using mathematical expression (#23380)
Updated the article with concepts and examples on using mathematical expressions as an argument to Abs.
2018-12-03 15:07:56 -07:00
Akash Kumar
9e9944b81a Add deprecation note for easy_install (#22909)
* Add deprecation note for easy_install

Add the text "easy_install has been deprecated" to the article.

* fix(guide): update link to easy_install
2018-12-03 16:42:00 +00:00
chris13888
7f00161e60 Update index.md (#23905) 2018-12-01 21:55:20 -05:00
Jack Kang
841fa65d08 changed wording (#23793)
changed confusing wording
2018-11-30 21:24:29 -05:00
raviram
8d1f5af8ad Added example on 2d lists and changed format (#23665)
updated the code format along with an example of 2d list.
2018-11-29 05:07:01 -05:00
raviram
9b76a135e4 Added example code with duplicates in list (#23629)
* Added example code with duplicates in list

* Reworded sentence to introduce duplicates
2018-11-28 19:51:55 -05:00
Susheela92
973b5d9fd7 Network Testing (#22867)
Added another heading. Network Testing.
2018-11-27 11:50:19 -07:00
Bernard Yeo
7ef9295fae formatting changes (#23803) 2018-11-26 22:01:42 -05:00
JawnsenTrain
417f485da7 Added a comma after class (#23613) 2018-11-26 05:55:51 -05:00
Aman Ranjan Verma
3d3d1ed068 Added explanation and examples (#25859)
Updated the article with examples and difference table for clear understanding.
2018-11-25 00:22:20 -08:00
JawnsenTrain
8024f9ffc6 Deleted the repeated word "using" (#23581)
The Integer Objects sentence had "using" twice, so I deleted one.
2018-11-25 00:34:23 -05:00
raviram
b48151239d Added link to Data Analysis using python. (#23579) 2018-11-25 00:33:36 -05:00
Naida Agić
de7f340182 Updated index.md to further explain functions (#22779) 2018-11-23 17:52:27 +07:00
pythonprogrammer18
a6354030a4 Incorrect punctuation on "eg" (#22961)
Fixed periods on "eg" on line 24
(my first pull LOL).
2018-11-22 23:09:01 -05:00
Ashmita03
ff0ab6e4f6 Update index.md (#22846) 2018-11-22 23:08:20 -05:00
Alishaan Ali
8ca6a28a9b Commenting Code Minor Grammatical Changes (#21175) 2018-11-21 08:58:10 -05:00
tahirsoft
df0196f6e3 fixed some minor mistakes like vanished colon and etc. (#22984) 2018-11-20 18:59:04 -05:00
Blaze2305
74a4b1175e added general syntax of python function definition (#22670)
* added general syntax of python function definition

* Cleanup
2018-11-20 18:38:56 -05:00
noelli
368cabee95 updated example codeblocks (#22292)
Last Codeblock wasn't set to Python.
Wrapped the Ellipses in Comments to get valid Python inside Codeblocks.
2018-11-19 07:23:20 -06:00
Naida Agić
6ab303b1fc Added another example which returns False (#22794) 2018-11-19 03:36:27 -05:00
tahirsoft
162d42d50a Changed the size of "Cons" in index.md (#22752)
Removed the difference in font size between "Pros" and "Cons"
2018-11-19 02:55:16 -05:00
nageswara-prasad
c861c03f9d add profiling reference links for python (#22276)
python profiling to identify potential performance bottlenecks
2018-11-18 19:55:11 -07:00
Kaunaj Banerjee
8df84d58e0 Add a section on Introduction to lists (#22233) 2018-11-18 19:19:06 -07:00
PMB79
abe821bd8e Clarification of the numbers that can be used. (#22174)
* Clarification of the numbers that can be used.

Article previously only explicitly referenced the use of floating point numbers. Have clarified that it is possible to use either an integer or a float.

* Fixed formatting and typos
2018-11-18 18:34:16 -05:00
Pratham1812
575e18c090 Added the text 'from x import y as z' (#21639)
* Added the text 'from x import y as z' 

it can be used to rename the module according to our convenience

* Applied formatting and fixed grammar
2018-11-18 18:23:42 -05:00
nyp
a69419c8a1 formatting changes (#24496) 2018-11-18 20:36:10 +05:30
Max Ong Zong Bao
ab4b7ca3cc Added te basic info of what is a list (#24034)
* Added te basic info of what is a list

A basic introduction of what a list has been added. Based upon the python docs link that is included in the guide.

* fix: added title
2018-11-18 20:08:53 +05:30
vincentgallo
197b9dc693 Remove Rocket Image/ Fix Link (#22271)
Removed rocket image or fix the link to properly display the image
2018-11-18 07:17:24 -06:00
PMB79
5db5f1df73 Minor semantic changes to improve readability. (#22135) 2018-11-17 20:59:51 -05:00
Pratham1812
8f21b7a33c added wxpython and pyqt (#21701) 2018-11-17 20:03:54 +09:00
Carl
cba5b6821e Fixed Hello World (#22172)
Fixed 'Hello world' to the original 'Hello, World' command for historical accuracy.
2018-11-17 03:40:59 -05:00
Glafs
9313e09c45 Fixed style typo in python guidelines (#27857)
* Fixed style typo in python guidelines

The python marker was below the ''' marker, moved it up in 2 examples.

* added output to python guide

Added an output from a conditional block and added the python tag to a code block
2018-11-15 15:22:07 +05:30
Naveenkumar Mortha
cf44c7246d Added steps to check keywords in python (#21511)
* Added steps to check keywords in python

>>> import keyword
>>> print (keyword.kwlist)
['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']
>>>

* Format the text properly
2018-11-14 18:14:24 -07:00
jlewismith
a0aa7ddbe5 Add link and fix typos. (#23683)
Added missing spaces after periods. Changed "Pyhthon" to "Python". Added a link that leads to more information about lists in Python.
2018-11-14 20:28:30 +05:30
Paula Milenkova
38862b6f9c Add text that elaborates on 'is' with '=' (#21537)
I added text that explicitly states the 'is' is signified with '=' since that was not already written and can help beginners distinguish better.
2018-11-14 07:38:40 -06:00
Sakina Fakhruddin
f478488859 Updated index.md (#22529) 2018-11-13 21:06:54 -05:00
jgowman
e20926ed94 Update index.md (#21446)
Added an a to a sentence where one was needed
2018-11-13 23:18:13 +00:00
Pranav Anbarasu
34abc69709 Added more pros and cons and fixed grammar
Added more pros and cons and fixed grammar
2018-11-12 19:43:05 +09:00
jgowman
cfc7dd09ca Grammar changes (#21509)
Grammar changes

Changes to some of the grammar in the description
2018-11-11 12:15:33 +07:00
Alishaan Ali
e4bff66f89 Slight Grammatical Changes on if-elif-else-statements (#21222)
<!-- Please follow this checklist and put an x in each of the boxes, like this: [x]. It will ensure that our team takes your pull request seriously. -->

- [x] I have read [freeCodeCamp's contribution guidelines](https://github.com/freeCodeCamp/freeCodeCamp/blob/master/CONTRIBUTING.md).
- [x] My pull request has a descriptive title (not a vague title like `Update index.md`)
- [x] My pull request targets the `master` branch of freeCodeCamp.
- [x] None of my changes are plagiarized from another source without proper attribution.
- [x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.

Closes #XXXXX
2018-11-09 11:03:10 -05:00
Jimmy
69ec2781a3 add anaconda logo to python/anaconda/index.md (#21278) 2018-11-09 22:19:14 +09:00
SirDickinson
d9e6bc6acc Adding multiline comments using triple apostrophes (#21296) 2018-11-09 21:59:13 +09:00
Antony ekirapa
ab5ddf132f Fixed grammar (#21939)
Some sentences were not started with capital letters. Also, where fixed where a sentence should end with a full stop and start with a capital letter.
2018-11-09 03:59:26 -05:00
Roppon Picha
2057069f2c spelling corrections and example addition (#21268) 2018-11-08 08:36:17 -06:00
Roppon Picha
e5fa49eb13 added comments. revised redundancy at the start. (#21251)
and minor spelling edits
2018-11-08 11:53:02 +00:00
PMB79
5242bba543 Correction of grammar. (#22146) 2018-11-07 17:40:42 -05:00
PMB79
ac950d8038 Simplification of language to improve readability. (#22107) 2018-11-07 17:22:00 -05:00
Roppon Picha
b8c7704cbc spelling corrections (#21236) 2018-11-07 20:04:05 +00:00
Daniel
02185e18df Change the title so it is more visible. (#21789)
* Change the title so it is more visible.

* corrected title syntax

* added main header back in after title syntax fix
2018-11-07 14:58:57 -05:00
Adi
5ee74650f1 Update index.md with has_key() (#21093)
Adding has_key() method to python dictionaries
2018-11-07 18:32:45 +00:00
Jimmy
624f328f29 Fixed some links, and added one to index.md (#20608)
* Fixed some links, and added one to index.md

* cleaned up links and removed referral/campaign query params
2018-11-07 07:56:11 -07:00
Bradley
8c4e965e19 Corrected Spelling. Added emphasis. (#24884)
Line 11 changed "everyon" to "everyone", changed "amongst" to "among".
Line 14 changed "approrpiate" to "appropriate" 
Added some emphasis to line 11 to help get the message across.
2018-11-07 20:20:08 +05:30
Roppon Picha
e04f1045d0 added intro sentence. corrected spelling. (#21207) 2018-11-07 07:47:43 -06:00
Dhaval Savalia
6cfc0030ce Add new frameworks and improve structure (#21128) 2018-11-07 07:26:34 -06:00
arjundixit98
12da60565a Add the word "programming" in the article (#25057) 2018-11-07 13:54:17 +05:30
PMB79
d1c5f51792 Minor semantic changes to improve readability. (#22127) 2018-11-06 19:57:47 -05:00
Himanshu Bag
d7bb602130 recursion (#19903)
* recursion

i believe that once we know function we should introduce a little bit of recursion techniques which nothing but an advancement of function.

* fixed formatting, grammar, removed unnecessary words/sentences
2018-11-05 13:00:28 -05:00
Paula Milenkova
4b701255b9 Added text on the semicolon use alongside indents (#21592)
In the section introducing and elaborating upon if and elif-statements, I made a small note on how the rest of the structure is just as crucial, particularly, the semicolon. That is because, while this file is on indentation, it also regards the structural requirements of a code and how to be refrain from avoidable errors. The same way you can easily avoid an error by remembering when to properly indent is seen when we remember to always include a semicolon after a condition.
2018-11-05 02:25:23 -05:00
Steven M Peterson
9a11c8b013 Defining the abbreviation (#21021)
Defining the abbreviation, so readers know what "PEP" stands for.
2018-11-04 20:44:35 -06:00
Lam Chi Tak
96cc282c8e Fix Typo (#22000) 2018-11-04 16:58:00 -05:00
Pritom Hazarika
49bf21a3dd Update index.md (#21753)
* Update index.md

implementing rock paper scissors  using if elif

* removed sentence
2018-11-04 13:16:21 -08:00
evachibber
0e8c00bff4 add the comparison (#21391) 2018-11-04 07:03:25 -05:00
SirDickinson
1fd96b1ebc Practical example of a while loop (#21523)
* Practical example of a while loop

Added a practical example of the benefits of a while loop being a condition controlled loop

* Fixed syntax and grammar
2018-11-03 22:22:52 -04:00
Joe Kim
40cc55d040 Added content : defining function inside functions (#20854) 2018-11-04 07:26:33 +05:30
mistymayem
aa5e550c3b Cleaned up formatting and added headers (#20103) 2018-11-03 21:10:30 -04:00
Ken Nguyen
00225cd186 Added else and finally clauses example (#20771) 2018-11-03 10:32:20 -07:00
Ken Nguyen
575cf064af Updated code examples to Python 3 (#20765) 2018-11-03 10:20:23 -07:00
kingtheoden
50ecd8ad40 Fix invalid syntax (#25653)
Print now needs brackets to work in python3
2018-11-03 01:22:25 +05:30
MUSSONT
2d33e01f72 PEMDAS reference added.md (#20291)
* Update index.md

* corrected formatting
2018-11-02 07:41:16 -07:00
ManicalEngineer
be84c11a30 Update index.md - Added 5th Pro to Pros & Cons (#31498)
* Update index.md

Added 5th pro to pro's & con's

* Update index.md

* Update index.md
2018-11-01 23:27:42 -04:00
Muh Fachrul Razy
e6b4de233a Add Comparison Operators (#33117)
Add comparison boolean operators 'and', 'or', and 'not'
2018-11-01 11:15:18 -04:00
Nikita
32b54e8706 Added space (#25869) 2018-11-01 10:05:21 +05:30
Pravin Pratap
c056fc18dd Added difference in range() between Python 2 and 3 (#20629)
Added the differences between the working methods of the range() function in Python 2 and 3, including the explanation of the "lazy" method of generating a list of numbers.
2018-10-31 21:11:43 -07:00
Ken Nguyen
d6d2578495 Fixed typos and added pipenv method (#20621) 2018-10-31 20:58:02 -07:00
Kyle Cheng
ac286c1d2f Readability (#33128) 2018-10-31 23:17:57 -04:00
Shane
522fce544e add return value which might be 0 (#20657)
if the input in abs is 0, then the return can't always be a positive value. 0 is not a positive value
2018-10-31 20:52:54 -05:00
Domingo Moronta
0fd1d30c43 Add decription to data structures (#32377) 2018-10-31 18:28:05 -05:00
murtazasaif
ae31e8f007 Updating index.md (#20547)
Describing how to get just values from a dictionary in Python 3.x
2018-10-31 08:00:52 -07:00
Pravin Pratap
a1226a38d8 Added virtualenv specifics for Windows (#20540)
Added the specific command to be executed on a Microsoft Windows-based system.
2018-10-30 22:47:27 -05:00
Sayali
fa93878e2b change answer to 00000000 (#23880)
In bitwise right shift operation the answer should in 8 bit format i.e 00000000 as both the the operands are in 8 bit format
2018-10-31 08:11:47 +05:30
Pravin Pratap
0a8669fbbe Added another code sample. (#20499)
Added a code sample to demonstrate usage of the zip function with a list of lists.
2018-10-30 18:01:00 -07:00
JawnsenTrain
1602caddc9 Revised the wording and fixed the grammar (#23607) 2018-10-29 15:44:02 -07:00
Maleo223
f00f46d2e5 Grammar/Sentence Structure Changes. (#22617) 2018-10-29 15:32:24 -07:00
Billy
834e178e3f Added Python logo to the article (#19905) 2018-10-29 15:17:56 -04:00
PranavKrishnan1
0f95416c24 Added some text. (#26711)
* Added some text.

Wrote about Guido Van Rossum and added some info on libraries.

* Update index.md
2018-10-29 00:34:49 -06:00
kunal768
560076fb26 Created a file for "Basics of Raspberry Pi Stuffs" (#20150)
* Created a file for "Basics of Raspberry Pi Stuffs" 

The code contains two parts:
First part is simply blinking led (Blink time can be set by time.sleep(x) x for the number of seconds)
Second part is for pwm control for led brightness

* Update RaspberryPiBasics.py

* reformatted two 2 space indention with title corr.
2018-10-28 21:44:26 -07:00
mistymayem
0e77f8c289 Simplified explanation of example (#20262) 2018-10-28 20:30:24 -05:00
Ken Nguyen
75d856fa26 Added PEP8 convention (#20168) 2018-10-27 20:13:15 -07:00
mistymayem
18f55fdfdf Sorted examples by priority (#20201) 2018-10-27 10:01:38 +05:30
Tanish Grover
5a5639b4d1 Added a "things you can do with python" section (#20400)
Added a section on the uses of python.
These include web development, machine learning and scripting.
2018-10-25 10:38:00 -04:00
Blake Lambert
af0fda4891 Infinite loop situation (#25657)
Added additional information on creating infinite loops.
2018-10-25 09:59:01 -04:00
mkanoria
bf196ded49 Add 'Pro' statement (#25670)
Pro statement about the ease of debugging Python code using the interpreter
2018-10-25 08:19:32 -04:00
Emily E
b40aa9c718 Update index.md (#21037)
Clarified some grammar and style
2018-10-22 15:01:37 -04:00
Brian Hopper
e17ffcdfd9 Update index.md (#21047)
Cleaned up language structure a bit, filled out the definition.
2018-10-22 14:43:28 -04:00
theodoreyoong
5e8d071a18 Fix(guide): Reformat article 2018-10-21 14:26:29 -04:00
Brian
a0b88d5b16 Update index.md (#22032) 2018-10-20 10:20:06 -07:00
Antony ekirapa
c4368e075d Update index.md (#22006)
Removed " where it is not needed and capitalised 'ide' to show as "IDE"
2018-10-20 10:19:02 -07:00
jgowman
bda61b730d Closing Parentheses (#21481)
The parentheses were opened but not closed
2018-10-20 22:48:36 +05:30
Brian
43cf17dcd5 Update index.md (#21942) 2018-10-20 10:18:18 -07:00
mimikaan
5ba36f1e87 Update index.md (#21773)
A simple implementation of class and object in python.
2018-10-20 10:17:14 -07:00
Pratham1812
4c6e8c0be2 Added use of 'or' (#21675) 2018-10-20 18:40:06 +02:00
Ken Nguyen
bda1775764 Added example to convert int to binary (#20275) 2018-10-19 21:40:32 +01:00
mistymayem
51c7b412a1 Added outputs for examples (#20171) 2018-10-19 04:29:03 +05:30
Alex
6a781e06da Update wording of index.md (#19559)
Inserted missing words in the article and comments
Updated the capitalization of True and False where necessary to maintain consistency with Python syntax
2018-10-16 20:55:20 -07:00
mrugesh mohapatra
164d900e96 fix(ci): fix tests for guide in root (#19526) 2018-10-16 11:42:46 -05:00
Mrugesh Mohapatra
da0df12ab7 fix(guide): simplify directory structure 2018-10-16 21:32:40 +05:30