# list is a collection which is orderedand changebale, allows duplicates members

# create a list

numbs = [1,2,3,4,5,6]
names = ['Heba', 'Haifa', 'Hayam', 'Ruby', 'Nanacy']

# use constructor
# nums2 = list((1,2,3,4))

# get value
# print(names[1])

# get the last value
# print(names[-1])


# length
# print(len(numbs))

# Append to list
# names.append('Hadeer')

# Remove from list
# names.remove('Heba')

# insert to position
# names.insert(0, 'Haya')

# change value
# names[1] = 'Hayam'

# remove with pop
# names.pop(0)

# reverse
# names.reverse()

# sort list
# names.sort()

# reverse sort
# names.sort(reverse=True)

print(names)