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 करे,

Add a comment...

  • 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
computer networks

Table of Contents All Chapters 1. OSI Model      1.1. Physical Layer      1.2. Data Link Layer  ...

computer networks

Table of Contents All Chapters 1. Topology 2. Types of Topology      2.1. Point to Point Topology    ...

computer networks

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

digital electronics number system

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

Edit Template

Sign up to track your learning

Login to continue your learning tracking

To reset your password, please enter your email address or username below.

Scroll to Top