#method is used to call on a value
spam = ['hello', 'hi', 'howdy', 'heyas']
a = spam.index('hi')

#append - adds the value at the end of the list
spam.append('hey')
print(spam)

#insert - it can be used to add the value anywhere in the list
spam.insert(1,'hey')
print(spam)

#remove the value from the list
spam.remove('howdy')
print(spam)

#sorting of values
spam.sort()
print(spam)

spam = ['a', 'z', 'A', 'Z']
spam.sort(key=str.lower)
print(spam)

#reverse the values of the list
spam = ['cat', 'dog', 'moose']
spam.reverse()
print(spam)
e17bfa2119b3230d6d6ab430ee6bdb951f0295bc
<mask token>

<mask token>
spam.append('hey')
print(spam)
spam.insert(1, 'hey')
print(spam)
spam.remove('howdy')
print(spam)
spam.sort()
print(spam)
<mask token>
spam.sort(key=str.lower)
print(spam)
<mask token>
spam.reverse()
print(spam)

spam = ['hello', 'hi', 'howdy', 'heyas']
a = spam.index('hi')
spam.append('hey')
print(spam)
spam.insert(1, 'hey')
print(spam)
spam.remove('howdy')
print(spam)
spam.sort()
print(spam)
spam = ['a', 'z', 'A', 'Z']
spam.sort(key=str.lower)
print(spam)
spam = ['cat', 'dog', 'moose']
spam.reverse()
print(spam)

#method is used to call on a value
spam = ['hello', 'hi', 'howdy', 'heyas']
a = spam.index('hi')

#append - adds the value at the end of the list
spam.append('hey')
print(spam)

#insert - it can be used to add the value anywhere in the list
spam.insert(1,'hey')
print(spam)

#remove the value from the list
spam.remove('howdy')
print(spam)

#sorting of values
spam.sort()
print(spam)

spam = ['a', 'z', 'A', 'Z']
spam.sort(key=str.lower)
print(spam)

#reverse the values of the list
spam = ['cat', 'dog', 'moose']
spam.reverse()
print(spam)