spam=['hello','hi','howedy','heyas']

print(spam.index('hello'))


spam.append('good night')
print(spam)

spam.insert(1,"good morning")
print(spam)


newlist=[]

for i in spam:
    newlist.append('a')
    newlist.append(i)

print(newlist)

newlist.remove('a')
print(newlist)

newlist1=[]
for i in newlist:
    if i == 'a':
        continue
    else:
        newlist1.append(i)
print(newlist1)
sortlist=[2,3,6,7,1,20,12]
sortlist.sort()
print(sortlist)

newlist.sort()
print(newlist)
newlist.sort(reverse=True)
print(newlist)


Alph=['A','c','b','Z','a']
Alph.sort()
print(Alph)
Alph.sort(key=str.lower)
print(Alph)