Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Using Functions | Functions
Practice
Projects
Quizzes & Challenges
Вікторини
Challenges
/
New Script
Секція 2. Розділ 1
ninja.py

ninja.py

index.html

index.html

preset.py

preset.py

bookUsing Functions

Свайпніть щоб показати меню

Why Use Functions?

Repeating code makes programs long and hard to maintain. Functions let you group commands into a reusable block, reducing repetition and making your code cleaner.

To call a function, simply use its name followed by parentheses, placing any required arguments inside those parentheses. For example, if you have a function named greet that takes a name of a person to greet, here is how you could call it:

greet("Alice")
Завдання

Swipe to start coding

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 1
ninja.py

ninja.py

index.html

index.html

preset.py

preset.py

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

some-alt