In this beginner-friendly Python tutorial, you’ll learn how to use a **list as an argument in a Python function**.
We walk through three simple and practical examples:
1️⃣ Adding the elements of a given list
2️⃣ Adding the elements of a list created using range()
3️⃣ Multiplying all elements of a list by a constant
This video is perfect if you're just starting out with Python functions and lists and want to understand how arguments work in real examples.
📌 *Timestamps*
00:00 – Introduction
00:07 – Function to add elements of a given list
01:22– Function to add elements of a list created using range()
03:04 – Multiplying list elements by a constant
04:54 – Summary & final thoughts
🔹Python Code (GitHub):
👉 https://github.com/Python-with-manalk...
🔹 Python playlists:
📌Python full course playlist (English) • py1@1 Variables in Python
📌Python full course playlist (Arabic) • Easy Python-تعلم بايثون بالعربية | دورة با...
If you found this helpful, like 👍, subscribe 🔔, and check out the full playlist for more Python beginner tutorials.
#python #functions #pythonbeginner #coding #pythonlists #pythonfunctions #بايثون #بايثون_بالعربي #