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.
This commit is contained in:
committed by
Manish Giri
parent
22142dc0e0
commit
ab5ddf132f
@ -16,11 +16,11 @@ One of the great advantages of using functions in your code is that it reduces t
|
||||
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
|
||||
4. a colon ':'
|
||||
5. some block of code to execute (that must be indented relative to the definition statement)
|
||||
6. a return statement (optional)
|
||||
2. A function name
|
||||
3. Paranthesis'()', and within paranthesis input parameters,although the input parameters are optional
|
||||
4. A colon ':'
|
||||
5. Some block of code to execute (that must be indented relative to the definition statement)
|
||||
6. A return statement (optional)
|
||||
|
||||
```python
|
||||
# a function with no parameters or returned values
|
||||
@ -46,7 +46,7 @@ Functions are blocks of code that can be reused simply by calling the function.
|
||||
|
||||
Functions in Python are created using the `def` keyword, followed by a function name and function parameters inside parentheses.
|
||||
|
||||
A function always returns a value,The `return` keyword is used by the function to return a value, if you don't want to return any value, the default value `None` will returned.
|
||||
A function always returns a value. The `return` keyword is used by the function to return a value, if you don't want to return any value, the default value `None` will returned.
|
||||
|
||||
The function name is used to call the function, passing the needed parameters inside parentheses.
|
||||
|
||||
|
Reference in New Issue
Block a user