Python Function Signatures: Positional and Keyword-Only Parameters
Learn how to use special parameter markers to enforce clear function contracts and prevent unexpected argument passing in Python programs.
-
💬
ИИ инструктор
Задавайте вопросы по любому уроку — понятный ответ придёт мгновенно, в любой момент. -
🕐
Начните в любое время
Без расписаний и дедлайнов — учитесь в своём темпе, когда удобно. -
🌐
На русском языке
Уроки, задания и сертификат — всё полностью на вашем языке.
О курсе
Defining functions with clear, predictable argument behavior is essential for writing robust and maintainable Python code. Understanding how to manage argument types—positional versus keyword—is a core skill for any serious Python developer.
This course teaches you the modern syntax required to precisely control how arguments are passed to your functions. You will master the use of special markers (forward slash and asterisk) to create function signatures that are both flexible for the user and strict in their requirements.
What you'll learn:
* Understand the distinction between positional, keyword, positional-only, and keyword-only arguments in Python.
* Apply the forward slash (/) marker to define positional-only parameters, ensuring callers cannot use keyword arguments.
* Configure the asterisk (*) marker to enforce keyword-only arguments, improving function readability and preventing breaking changes.
* Practice combining positional, keyword-only, and variable arguments (*args, **kwargs) into complex but stable function signatures.
* Learn to integrate modern Python type hints with special parameters for improved documentation and static analysis.
We begin by defining core terminology and then move through practical examples and exercises focused entirely on function definition syntax and usage. This course is designed for beginner to intermediate Python developers who want to deepen their understanding of function definition and argument passing rules. No prior knowledge of special parameter syntax is required.
Enhance your Python code quality by mastering function argument control.
Что вы получите
-
📜
Сертификат об окончании
Добавьте в профиль LinkedIn -
💬
Личный AI-наставник
Застрял на уроке? Спроси встроенного наставника о чём угодно, в любой момент. -
🎧
Аудиоверсия включена
Учитесь в дороге — экран не нужен -
♾️
Пожизненный доступ
Возвращайтесь в любое время, без срока -
📱
Телефон или компьютер
Работает везде и на любом устройстве -
💸
Возврат в течение 14 дней
Без вопросов -
⚡
Кратко и по делу
2 ч 36 мин практического материала
Отзывы
Отзывов пока нет — поделитесь своим первым.
Часто спрашивают
Что нужно для прохождения курса? +
Только смартфон или компьютер с доступом в интернет. Никаких установок и оборудования.
Как оплатить? +
Банковской картой через Stripe. Данные карты обрабатывает Stripe — мы их не храним.
Можно ли вернуть деньги? +
Да — полный возврат в течение 14 дней, без вопросов.
Как долго будут доступны материалы? +
Навсегда. После покупки курс остаётся с вами — возвращайтесь в любое время.
Получу ли я сертификат? +
Да. По окончании выдаётся сертификат, который можно добавить в профиль LinkedIn.
Подходит для специалистов в
IT
Дизайн
Финансы
Маркетинг
Медицина
Образование
HoReCa
Производство