Commit f5d53743 authored by Manasani suraj's avatar Manasani suraj

slicing

parent 134568a2
array= [1,2,3,"vishnu",5,"hello world"]
s="hello world"
print(array[:3])
print(array[::-1])
print(s[4::-1])
print(array[2:4])
print(s[:3])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment