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:
@ -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
|
||||
|
Reference in New Issue
Block a user