#name=['ajay','vijay','john','sijo',10,10.0,True]
#print(name)


list=['java','python','c','javascript']
print(list)
print(list[0])
print(list[3])
print(list[-1])
print(list[-1:-5:-1])
print(list[0:4:2])
print(list[:3:2])
for item in list:
    print(item)
list.append("dart")
print(list)
list[0]="ruby"
print(list)
list.append("python")
print(list)
list.insert(3,"perl")
print(list)