#Q2.
list1=[2]
print(list1)

#Q3.
list=[2,3,4,1,5,7,8]
print(list)

#Q4.
list=[2,4,6,8]
print(list)
length=len(list)
print(length)

#Q5.
list=[5,4,3,2]
print(list)
list=list.index(5)
print(list)

#Q6.
list=[1,3,4,3,2,7]
print(list)
print(list[-1])

#Q7.
list=[1,2,3,4,6,3,8,5]
print(list)
print(list[-2])

#Q8.
list=[1,2,6,5,3,4,7,6]
print(list)
print(list[4:6])

#Q9.
list=[1,2,3,4,5,6,7,8,9]
print(list)
print(list[4:])


#Q10.
list=[1,2,3,4,5,6,7,8,9]
print(list)
print(list[:4])


#Q11.
list=[6,7,8,9,3,4,5,6]
print(list)
for i in list:
    print(i)


#Q12.
list=[6,7,8,9,3,4,5,6]
print(list)
for i in list:
    list1.append(i)
    print(list1)

