19. Write a python code to create a list, access the list ,add a list and copy a list to another list.

 # A list with 3 integers

numbers = [1, 2, 5]
print(numbers)
# access item at index 0
print(numbers[0])   # Python
# using append method
numbers.append(32)
#jodi add korte bole append diye korbo add
print("After Append:", numbers)
#for copy
mylist = numbers.copy()
print(mylist)

Comments

Popular posts from this blog

Define process, input, output, process variable and process stream.

Xclusive Can Limited industrial tour report