Answers for "python list[::}"

6

list in python

list = ['apple', 4, 'banana', 'bat', 0.44]

print(list)

#it will print all items in the list
Posted by: Guest on January-11-2022
0

list in python

list = [0,1,2,3,4]     
print("printing original list: ");    
for i in list:    
    print(i,end=" ")    
list.remove(2)    
print("nprinting the list after the removal of first element...")    
for i in list:    
    print(i,end=" ")
Posted by: Guest on May-25-2021

Python Answers by Framework

Browse Popular Code Answers by Language