Table of Contents
Python Tutorial
Python Tutorial
Python List in Hindi
What is Python List
Python List in hindi : python में list बनाने के लिए हम square bracket का use करते हैं, और उनके अंदर values को comma से separate करके Store करते हैं. जैसा की example में दिया गया है
What is Nested List in python
अगर हम list केअंदर list बनाते हैं तो इसे nested list कहा जाएगा. for Example
what is range list in python
python मे range() एक method होता है, जिसके help से हम python List को create कर सकते है। जो list range() method के help से create किया जाता है उन्हे range list कहा जाता है।
what is list comprehension in python
pythhon मे list comprehension एक तरीका है list create करने का
what is list indexing in python or how to access list items
अगर हम python list मे से किसी particular item को access करना चाहते है तो indexing का use करते है। indexing positive और negative दोनों तरीके से की जा सकती है। positive indexing मे list के first item को access करने के लिए “0” का use करते है और negative indexing मे list के last item को access करने के लिए “-1” का use करते है।
How to change list items in python
python मे हम list के items को direct assignment के through change कर सकते है। list के जिस भी item को change करना उसे indexing के through select किया जाता है।
How to iterate list items in python
python मे हम list के items को for loop के through iterate कर सकते है।
How to add lists in python
python मे हम “+” operator का use करके lists को आसानी से add कर सकते है।
List Methods
python मे list के लिए कई सारे build-in methods होते है.
Syntex:
method को किसी भी variable के साथ use करने के लिए dot ( . ) का use करते है।
Example:
append() : इस method का use करके हम string के सभी lower case letters को upper case मे कर सकते है।
यहाँ कुछ list के methods दिए गए है जिन्हे आप इसी तरह से list के साथ use करके इनके result को देख सकते है।
append(): नए element को list के end मे add करता है।
insert(): नए element को specified index पर insert करता है।
remove(): किसी Specified value को list मे से remove करता है।
pop(): किसी Specified index परर element को remove करता है।
index(): किसी Specified value का first occurrence का index return करता है।
count(): किस Specified value का occurrences count करता है।
sort(): List के elements को sort करता है।
reverse(): List के elements को reverse करता है।
उम्मीद करते है कि आपको python list अच्छे समझ मे आ गया होगा । अपने learning को continue रखने के लिए next button पर click करे,
- All Posts
- Artificial Intelligence
- Computer Fundamentals
- Computer Networks
- Data Analytics
- Data Science
- DBMS
- Deep Learning
- Digital Electronics
- DSA with Python
- Excel
- Exercise
- Git & Github
- Machine Learning
- Matplotlib
- Natural Language Processing
- NumPy
- Operating System
- Pandas-s
- Power BI
- Python Tutorial
- Scikit-learn
- Seaborn
- SQL & MySQL

Table of Contents All Chapters 1. Personal Area Network 2. Local Area Network 3. Campus Area Network 4. Metropolitan Area...

Table of Contents All Chapters 1. Data Communication 2. Types of Data Communication 2.1. Simplex 2.2....

Table of Contents All Chapters 1. Special Logic Gate 2. XOR Gate 2.1. XOR Gate Truth Table 3....

Table of Contents All Chapters 1. Universal Logic Gates 2. NOR Gate 2.1. NOR Gate Truth Table 3....

Table of Contents All Chapters 1. Logic Gate 2. AND Gate 2.1. AND Gate Truth Table 3. OR...

Table of Contents All Chapters 1. Simplification 2. Simplification using Boolean Algebra Theorems 3. Simplification using K-map Digital Electronics...

Table of Contents All Chapters 1. Identity Laws 2. Null Laws 3. Domination Laws 4. Idempotent Laws 5. Complement Laws...