Q11. Write the output of the following code :
>>>L=["Amit","Sumit","Naina"]
>>>print(L[-1][-1])
Q12. Write the output of the following code :
L=["Amit","Sumit","Naina"]
print(L[1:-1])
Q13. Write the output of the following code :
L=["Amit","Sumit","Naina"]
print(L*2)
Q14. Write the output of the following code :
L=["Amit","Sumit","Naina"]
print(L**2)
Q15. Write the output of the following code :
L=[0.5 * x for x in range(4)]
print(L)
Q16. Write the output of the following code :
L=['a' * x for x in range(4)]
print(L)
Q17. Write the output of the following code :
L= [1*x for x in range(10,1,-4)]
print(L)
Q18. Write the output of the following code :
L=[1,2,3,4,5]
for i in L:
   print(i,end=" ")
   i=i+1
Q19. Write the output of the following code :
L=["Amit","Sumit","Naina"]
L1=["Sunil"]
print(L + L1)
Q20. Which command is used to add an element in List?
very nice
Thank you so much Ruby.
Very helpful. Thanks