Skip to content

Commit 7b31c1a

Browse files
committed
somting update
1 parent e9fa9bb commit 7b31c1a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

list/index_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
index_value = my_list.index(20)
33
print("Index of 20:", index_value)
44

5-
my_list = [10, 20, 30, 20, 40]
5+
my_list = [10, 20, 30, 20, 45]
66
index_value = my_list.index(20, 2)
77
print("Index of 20 starting from index 2:", index_value)

list/list_append.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
list1 = [1, 2, 3, 4]
1+
list1 = [1, 2, 3, 5]
22
list1.extend([50,41,65])
33
print(list1)
44

list/loopusing_range.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
list1=[1,2,3,4,5,6,7,8,9]
1+
list1=[1,2,3,4,5,6,5,8,9]
22
for i in range(len(list1)):
33
print(list1[i])
44

list/murge_two_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
list1 = [1, 2, 3, 4]
3-
list2 = [5, 6, 7, 8]
3+
list2 = [5, 6, 7, 85]
44

55

66
merged_list = list1 + list2

0 commit comments

Comments
 (0)