Indentation and grammar (#19209)

* Indentation and grammar

- I added a sentence about indentation, which is essential for the code to be contained in the function
- Neatened up the grammar in the list.

* Remove commas
This commit is contained in:
benpeterdalley
2018-10-15 18:38:01 +11:00
committed by A-J Roos
parent 7e866537a1
commit 5253473b02

View File

@ -17,9 +17,9 @@ In Python, a function definition has the following features:
1. The keyword `def`
2. a function name
3. paranthesis'()', and within paranthesis input parameters,although the input parameters are optional.
3. paranthesis'()', and within paranthesis input parameters,although the input parameters are optional
4. a colon ':'
5. some block of code to execute
5. some block of code to execute (that must be indented relative to the definition statement)
6. a return statement (optional)
```python