Python Basics (Hindi)

Python List in Hindi (2026) – List क्या है?

Python list in Hindi explained with examples methods and indexing

Python में List एक ordered और mutable data structure है, जिसका उपयोग multiple values को एक साथ store करने के लिए किया जाता है। अगर आप जानना चाहते हैं list kya hai, list ka use और list methods, तो यह beginner-friendly guide आपके लिए है।

📋 List क्या है? Ordered collection जिसमें elements index के साथ store होते हैं
🔄 Mutable List के data को change, add और remove किया जा सकता है
📏 Indexed हर element का index होता है (0 से शुरू)
⚡ Use Cases Student data, shopping list, dynamic data storage
Python List Basics

Python में List क्या है? (What is List in Python in Hindi)

Python में List एक ordered और mutable data structure है, जिसमें हम multiple values को एक ही variable में store कर सकते हैं। List के elements को index के जरिए access किया जाता है और इसे आसानी से modify (add, update, delete) किया जा सकता है।

🧾 List Syntax
# List बनाना
numbers = [10, 20, 30, 40]

# Mixed data list
data = ["Python", 100, 3.5, True]
📋 Ordered Elements का एक fixed order होता है
🔄 Mutable List को change किया जा सकता है
📏 Indexed हर element का index होता है (0 से शुरू)
📦 Multiple Values एक ही variable में कई values store कर सकते हैं
Python List Methods

Python List Methods in Hindi (append, insert, remove, pop, sort, reverse)

Python में List methods का उपयोग list के data को manage करने के लिए किया जाता है। जैसे element add करना, delete करना, sort करना आदि। नीचे सभी important methods examples और output के साथ दिए गए हैं।

➕ append() List के अंत में नया element जोड़ता है
fruits = ["apple", "banana"]
fruits.append("mango")
print(fruits)

# Output: ['apple', 'banana', 'mango']
📍 insert() Specific index पर element जोड़ता है
nums = [1, 2, 3]
nums.insert(1, 10)
print(nums)

# Output: [1, 10, 2, 3]
❌ remove() Specific value को हटाता है (पहली occurrence)
nums = [1, 2, 3, 2]
nums.remove(2)
print(nums)

# Output: [1, 3, 2]
🗑 pop() Last या index से element हटाता है
nums = [1, 2, 3]
nums.pop()
print(nums)

# Output: [1, 2]
🔢 sort() List को ascending order में sort करता है
nums = [3, 1, 2]
nums.sort()
print(nums)

# Output: [1, 2, 3]
🔁 reverse() List को reverse कर देता है
nums = [1, 2, 3]
nums.reverse()
print(nums)

# Output: [3, 2, 1]
List Features

Python List के Features (Mutable, Ordered, Indexed, Duplicates)

Python में List एक powerful data structure है जिसमें कई important features होते हैं। ये features List को flexible और dynamic बनाते हैं।

🔄 Mutable List के elements को change, add या remove किया जा सकता है
nums = [1, 2, 3]
nums[0] = 10
print(nums)

# Output: [10, 2, 3]
📋 Ordered Elements एक fixed order में store होते हैं
data = ["A", "B", "C"]
print(data[1])

# Output: B
📏 Indexed हर element का index होता है (0 से शुरू)
items = ["x", "y", "z"]
print(items[0])

# Output: x
🔁 Allow Duplicates Same value multiple times store हो सकती है
nums = [1, 2, 2, 3]
print(nums)

# Output: [1, 2, 2, 3]
Python List Methods

Python List Methods in Hindi (append, insert, remove, pop, sort, reverse)

Python में List methods का उपयोग list को modify करने के लिए किया जाता है। नीचे सबसे important methods दिए गए हैं जो interviews और real projects में काम आते हैं।

➕ append() List के अंत में नया element जोड़ता है
fruits = ["apple", "banana"]
fruits.append("mango")
print(fruits)
# ['apple', 'banana', 'mango']
📍 insert() किसी specific index पर element जोड़ता है
nums = [1, 2, 3]
nums.insert(1, 10)
print(nums)
# [1, 10, 2, 3]
❌ remove() Specific value को हटाता है (पहली occurrence)
nums = [1, 2, 3, 2]
nums.remove(2)
print(nums)
# [1, 3, 2]
🗑 pop() Last element हटाता है या index से element निकालता है
nums = [1, 2, 3]
nums.pop()
print(nums)
# [1, 2]
🔢 sort() List को ascending order में sort करता है
nums = [3, 1, 2]
nums.sort()
print(nums)
# [1, 2, 3]
🔁 reverse() List को reverse order में बदल देता है
nums = [1, 2, 3]
nums.reverse()
print(nums)
# [3, 2, 1]
Indexing & Slicing

Python List Indexing & Slicing in Hindi

Python में List indexing और slicing का उपयोग list के elements को access करने के लिए किया जाता है। Indexing से हम single element निकालते हैं और slicing से multiple elements।

📏 List Indexing (Single Element Access)
my_list = [10, 20, 30, 40]

print(my_list[0])   # 10 (first element)
print(my_list[2])   # 30
print(my_list[-1])  # 40 (last element)
✂️ List Slicing (Multiple Elements Access)
my_list = [10, 20, 30, 40, 50]

print(my_list[1:3])   # [20, 30]
print(my_list[:3])    # [10, 20, 30]
print(my_list[2:])    # [30, 40, 50]
print(my_list[::-1])  # reverse list
📋 Index Starts from 0 List का पहला element index 0 पर होता है
🔙 Negative Indexing -1 last element को represent करता है
✂️ Range Access Slicing से multiple elements एक साथ मिलते हैं
⚡ Flexible Start, end और step value define कर सकते हैं
Real-Life Examples

Python List के Real-Life Examples (Hindi)

Python List का उपयोग real life और projects में बहुत common है। नीचे practical examples दिए गए हैं जिससे आपको समझ आएगा कि List कहाँ और कैसे use होती है।

🛒 Shopping List Market से खरीदने वाली items को manage करने के लिए
shopping = ["milk", "bread", "eggs"]

shopping.append("butter")
print(shopping)

# Output: ['milk', 'bread', 'eggs', 'butter']
🎓 Student Marks Students के marks store और update करने के लिए
marks = [85, 90, 78]

marks.append(88)
print(marks)

# Output: [85, 90, 78, 88]
📋 To-Do List Daily tasks manage करने के लिए
tasks = ["study", "exercise", "coding"]

tasks.remove("exercise")
print(tasks)

# Output: ['study', 'coding']
👨‍💼 Employee Names Company में employees की list store करने के लिए
employees = ["Rahul", "Aman", "Neha"]

employees.append("Priya")
print(employees)

# Output: ['Rahul', 'Aman', 'Neha', 'Priya']
Comparison

Python List vs Tuple in Hindi (Difference)

Python में List और Tuple दोनों data structures हैं, लेकिन इनके बीच कुछ important differences होते हैं। नीचे table में आसान तरीके से difference समझें।

📊 List vs Tuple Difference
Feature List Tuple
Mutability Mutable (change हो सकती है) Immutable (change नहीं होती)
Syntax [ ] ( )
Performance Normal Faster
Use Case Dynamic data Fixed data
Practice Questions

Python List Practice Questions in Hindi

नीचे दिए गए practice questions से आप अपने Python List concepts को strong बना सकते हैं। पहले खुद solve करें, फिर answers check करें।

Q1. List में नया element कैसे जोड़ेंगे? Hint: append() method use करें
Q2. List से element remove कैसे करेंगे? Hint: remove() या pop() use करें
Q3. List का पहला element कैसे access करेंगे? Hint: indexing use करें
Q4. List को reverse कैसे करेंगे? Hint: reverse() method
Q5. Duplicate values को कैसे हटाएंगे? Hint: set() का उपयोग करें
Q6. List को ascending order में कैसे sort करेंगे? Hint: sort() method
FAQ

Python List FAQ in Hindi (Common Questions)

यहाँ Python List से जुड़े सबसे common सवालों के आसान हिंदी में जवाब दिए गए हैं। ये questions beginners और interview दोनों के लिए useful हैं।

Q1. Python में List क्या है?

Python में List एक ordered और mutable data structure है, जिसमें multiple values को एक साथ store किया जा सकता है।

Q2. List mutable क्यों होती है?

List mutable होती है क्योंकि इसके elements को change, add या remove किया जा सकता है।

Q3. List और Tuple में क्या difference है?

List mutable होती है जबकि Tuple immutable होती है। List dynamic data के लिए और Tuple fixed data के लिए use होती है।

Q4. List में indexing कैसे काम करती है?

List का पहला element index 0 से शुरू होता है और negative indexing से last element access कर सकते हैं।

Q5. List में duplicate values allowed हैं?

हाँ, List duplicate values को allow करती है।

Q6. List को sort कैसे करते हैं?

List को sort करने के लिए sort() method का उपयोग किया जाता है।

Q7. List और Set में क्या अंतर है?

List ordered होती है और duplicates allow करती है, जबकि Set unordered होता है और duplicates remove कर देता है।

Final Quiz

Python List MCQ Quiz (Test Your Knowledge)

नीचे दिए गए MCQs solve करें और अंत में अपना score check करें 🎯

Q1. Python List क्या होती है?
Q2. List का पहला index क्या होता है?
Q3. कौन सा method element add करता है?
Q4. List किस symbol से define होती है?
Q5. Duplicate values list में allowed हैं?
Vista Academy – 316/336, Park Rd, Laxman Chowk, Dehradun – 248001
📞 +91 94117 78145 | 📧 thevistaacademy@gmail.com | 💬 WhatsApp
💬 Chat on WhatsApp: Ask About Our Courses