Commit 47b78eb7 authored by NENAVATH SRIKANTH's avatar NENAVATH SRIKANTH

Slicing

parent b5434151
Pipeline #14877 passed with stage
in 15 seconds
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])
\ No newline at end of file
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