Important Notice:

Access List Elements Using Indexing

Access List Elements Using Indexing

21 views 1 min read

Program 2: Access List Elements Using Indexing :-

हिंदी में: List में Indexing का उपयोग करके किसी भी element को उसके index number की सहायता से access किया जाता है। Python में indexing 0 से शुरू होती है।

English: Indexing is used to access list elements using their index numbers. In Python, indexing starts from 0.

Code-


numbers = [10, 20, 30, 40, 50]

print(numbers[0])
print(numbers[2])
print(numbers[4])
Output-
10
30
50
 
 

Related Notes