Q1. Given the lists L=[1,3,6,82,5,7,11,92] write the output of print(L[2:5])
Q2. Given the lists L = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'] write the output of
(a) print(L[-7:-2]) (b)print(L[2:-5]) (c) print(L[2:7:2]) (d) print(L[6:]) (e) print(L[6:1:-2])
Q3. Given a string S = “Himalayan valley”
write the output of print(S[-1: :-1])
Q4 .Given the lists L=[12,19,22,7,18,52,14,79]
write the output of print(L[ : :-1])
L[::-1]
print(L[6:2:-2])