Day#1 Python Coding Challenge | Slicing Operation on a list

Day#1 Python Coding Challenge | Slicing Operation on a list

In this program, we will talk about the slicing operation on a list in Python. We will run the code and see how it varies with other scenarios.

#what is the output of the below code

list_1 = [1,2,3,4,5,6,7]
print(list_1[:2:])

Explanation in this video: https://youtu.be/tokyD--2u3c

Post a Comment

0 Comments