HTML Diff
0 added 0 removed
Original 2026-01-01
Modified 2026-02-21
1 <p>Functions are a powerful tool with extensive capabilities. So far, we have looked at the simplest types of functions: named functions. In addition, Python has anonymous functions, which greatly expand the language's expression capabilities. When describing and calling functions, we have mainly used<strong>positional arguments</strong>. Now, we pass them in a strictly defined order.</p>
1 <p>Functions are a powerful tool with extensive capabilities. So far, we have looked at the simplest types of functions: named functions. In addition, Python has anonymous functions, which greatly expand the language's expression capabilities. When describing and calling functions, we have mainly used<strong>positional arguments</strong>. Now, we pass them in a strictly defined order.</p>
2 <p>Python allows functions to have<strong>named arguments</strong>besides positional ones. Functions in Python can take a variable number of them inside a collection object. Python functions are<strong>first-class objects</strong>, so we can pass, receive by reference and construct them on the fly.</p>
2 <p>Python allows functions to have<strong>named arguments</strong>besides positional ones. Functions in Python can take a variable number of them inside a collection object. Python functions are<strong>first-class objects</strong>, so we can pass, receive by reference and construct them on the fly.</p>
3 <p>In this course, we will look at working with this tool. And you will also learn about a powerful and fascinating concept,<strong>decorators</strong>, that allow you to do many things with functions. Basic concepts in the course:</p>
3 <p>In this course, we will look at working with this tool. And you will also learn about a powerful and fascinating concept,<strong>decorators</strong>, that allow you to do many things with functions. Basic concepts in the course:</p>
4 <ul><li>Positional arguments</li>
4 <ul><li>Positional arguments</li>
5 <li>Named arguments</li>
5 <li>Named arguments</li>
6 <li>Variable number of arguments</li>
6 <li>Variable number of arguments</li>
7 <li>First-class objects</li>
7 <li>First-class objects</li>
8 <li>Anonymous functions</li>
8 <li>Anonymous functions</li>
9 <li>Decorators</li>
9 <li>Decorators</li>
10 <li>Higher-order functions like map, filter, and reduce</li>
10 <li>Higher-order functions like map, filter, and reduce</li>
11 </ul>
11 </ul>