list in python
list = ['apple', 4, 'banana', 'bat', 0.44]
print(list)
#it will print all items in the list
list in python
list = ['apple', 4, 'banana', 'bat', 0.44]
print(list)
#it will print all items in the list
list in python
list = [1, 2, 3, 4, 5, 6]
print(list)
# It will assign value to the value to second index
list[2] = 10
print(list)
# Adding multiple element
list[1:3] = [89, 78]
print(list)
# It will add value at the end of the list
list[-1] = 25
print(list)
list in python
list = [132, 31212, 12, 2, 12]
print(list[3])
#output: 2
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us