## lists6.py

def main():

    pals = ['Bob','Rob','Fred','Amy','Sarah']

    if 'Amy' in pals:
        dex = pals.index('Amy')
        print('Found Amy at index',dex)
        pals.remove('Amy') ### unfriended
        ##del pals[dex]
    else:
        print('Amy not a pal')

    pals.insert(0,'Valerie')

    pals.sort() ### sort alpha
    pals.reverse()  ### reverse the sort

    print(pals) ### crude dump

    print(max(pals))
    

    

main()
    
    

## lists6.py

def main():

    pals = ['Bob','Rob','Fred','Amy','Sarah']

    if 'Amy' in pals:
        dex = pals.index('Amy')
        print('Found Amy at index',dex)
        pals.remove('Amy') ### unfriended
        ##del pals[dex]
    else:
        print('Amy not a pal')

    pals.insert(0,'Valerie')

    pals.sort() ### sort alpha
    pals.reverse()  ### reverse the sort

    print(pals) ### crude dump

    print(max(pals))
    

    

main()
    
    

## lists6.py ### unfriended ##del pals[dex] ### sort alpha ### reverse the sort ### crude dump