|
2 | 2 |
|
3 | 3 | A [`function`][function] is a block of organized, reusable code that is used to perform a specific task. |
4 | 4 | `Functions` provide better modularity for your application and a high degree of code reuse. |
5 | | -Python, like other programming languages, has [_built-in functions_][build-in functions] ([`print`][print], [`map`][map], and so on) that are readily available. |
| 5 | +Python, like other programming languages, has [_built-in functions_][built-in functions] ([`print`][print], [`map`][map], and so on) that are readily available. |
6 | 6 | You can also define your own functions. Those are called [`user-defined functions`][user defined functions]. |
7 | 7 | Functions can run something as simple as _printing a message to the console_ or they can be quite complex. |
8 | 8 |
|
9 | | -To execute the code inside a function, you need to call the function, which is done by using the function name followed by parenthesese [`()`]. |
| 9 | +To execute the code inside a function, you need to call the function, which is done by using the function name followed by parentheses [`()`]. |
10 | 10 | Data, known as [`arguments`][arguments], can be passed to the function by placing them inside the parenthesese. |
11 | 11 | A function definition may include zero or more [`parameters`][parameters]. |
12 | 12 | Parameters define what argument(s) the function accepts. |
@@ -376,7 +376,7 @@ The full list of function attributes can be found at [Python DataModel][attribut |
376 | 376 | [LEGB Rule]: https://realpython.com/python-scope-legb-rule/ |
377 | 377 | [arguments]: https://www.w3schools.com/python/gloss_python_function_arguments.asp |
378 | 378 | [attributes]: https://docs.python.org/3/reference/datamodel.html#index-33 |
379 | | -[build-in functions]: https://docs.python.org/3/library/functions.html |
| 379 | +[built-in functions]: https://docs.python.org/3/library/functions.html |
380 | 380 | [def]: https://www.geeksforgeeks.org/python-def-keyword/ |
381 | 381 | [dict]: https://docs.python.org/3/tutorial/datastructures.html#dictionaries |
382 | 382 | [first class objects]: https://en.wikipedia.org/wiki/First-class_object |
|
0 commit comments