Python for Data Science – Pass List to Function in Python 🧠

Опубликовано: 10 Июнь 2026
на канале: Master of Data Science
319
5

✅ Want to pass a list to a function in Python?

Here’s a quick and clean way to do it using a simple function and a loop. Perfect for beginners and aspiring data scientists.

📌 Concept:
Pass a list like [1, 2, 3] to a function and print or process each item using a `for` loop.

🔍 Python Tip in this Short:
```python
def show(nums):
for n in nums:
print(n)

show([1, 2, 3])
#PythonTips
#PythonShorts
#DataScience
#MasterOfDataScience
#PassListInPython
#LearnPython