Crud Operation in python
Crud Operation in
Python programming
Coding of Operation
list1 = [9,0,1,9]
print(list1)
print(list1[1])
print(list1[-2])
Print("read operation in list")
list2 = [5,5,2,0,1,8]
print(list2)
print(list2[0:5:1])
Print("updating operation in list")
list3=["divya","jatin","yash"]
print(list3)
list3[0]= "devang"
print(list3)
Print("deleting operation in list")
list4=[9,8,7,6,5]
print(list4)
list4.remove(7)
print(list4)
Output of
the program
creat operation in list
[9, 0, 1, 9]
0
1
read operation in list
[5, 5, 2, 0, 1, 8]
[5, 5, 2, 0, 1]
updating operation in list
['divya', 'jatin', 'yash']
['devang', 'jatin', 'yash']
deleting operation in list
[9, 8, 7, 6, 5]
[9, 8, 6, 5]
[Program finished]
Thank you for visit
Good work
ReplyDeleteKeep it up bro good work
ReplyDeleteGood work Bro 👍👍👍👍
ReplyDeleteGreat data and much helfull
ReplyDeleteGood work
ReplyDelete