# your code goes here #index nums=["1","2","3","4"] lets=["a","b","c","d"] print(nums) print(lets) print(nums[0:]) print(lets[0:]) #modify #once modifued that exist num doen't show nums[0]="0" lets[0]="m" print(nums) print(lets) #insert #you can add which is need nums.insert(0,"9") lets.insert(0,"maru") print(nums) print(lets) #append #you can add end of the variebles you need nums.append("99") lets.append("velam") print(nums) print(lets) #deleted #you can delete which you dont need del nums[0] print(nums) del lets[0] print(lets) #pop #is is deleting whatever you need index deleted=nums.pop() print(nums) deleted=lets.pop() print(lets) #remove #also same by pop but in this u have to remove a value directly nums.remove("2") print(nums) lets.remove("b") print(lets) #sorted #its allacating values by alphapaticly print(sorted(nums)) print(sorted(lets)) #reverse #which is you can change the order by reverse nums.reverse() print(nums) lets.reverse() print(lets) #lenth #you can to know total numbers of value print(len(nums)) print(len(lets))
Standard input is empty
['1', '2', '3', '4'] ['a', 'b', 'c', 'd'] ['1', '2', '3', '4'] ['a', 'b', 'c', 'd'] ['0', '2', '3', '4'] ['m', 'b', 'c', 'd'] ['9', '0', '2', '3', '4'] ['maru', 'm', 'b', 'c', 'd'] ['9', '0', '2', '3', '4', '99'] ['maru', 'm', 'b', 'c', 'd', 'velam'] ['0', '2', '3', '4', '99'] ['m', 'b', 'c', 'd', 'velam'] ['0', '2', '3', '4'] ['m', 'b', 'c', 'd'] ['0', '3', '4'] ['m', 'c', 'd'] ['0', '3', '4'] ['c', 'd', 'm'] ['4', '3', '0'] ['d', 'c', 'm'] 3 3