Python - Slicing and Indexing - beginner tutorial

Опубликовано: 24 Март 2026
на канале: Duomly: Learn Smart Skills
2,871
33

In this video, I'm going to tell you what is slicing and indexing in Python and how it works in different scenarios.

Subscribe ►    / @duomly  

***************************************
Additional Resources
The written version of this video: https://www.blog.duomly.com/slicing-i...
***************************************

Slicing in Python is a feature that enables accessing parts of sequences like strings, tuples, and lists. You can also use them to modify or delete the items of mutable sequences such as lists. Slices can also be applied to third-party objects like NumPy arrays, as well as Pandas series and data frames.

Slicing enables writing clean, concise, and readable code.

This article shows how to access, modify, and delete items with indices and slices, as well as how to use indexing.

This video is based on the article of our teammate Mirko.

Subscribe ►    / @duomly  

00:00 - 01:14 - Intro to Python Slicing and Indexing
01:15 - 01:54 - What is Slicing in Python?
01:55 - 04:43 - What is Indexing in Python?
04:44 - 05:47 - Negative Indexes in Python
05:48 - 06:32 - Update lists with indexes
06:33 - 09:03 - Slicing in Python
09:04 - 10:42 - Ommiting Start and Stop in slicing
10:43 - 11:36 - Negative values
11:37 - 13:21 - Slicing [start:stop:step]
13:22 - 14:54 - Slicing [start:stop:step] - negative values
14:55 - 15:25 - Shallow copy
15:26 - 16:26 - Slicing - replacing and deleting values
16:27 - 17:14 - What are slices?
17:15 - 17:47 - Slices - omitting values
17:48 - 19:37 - Summary of Python Slicing and Indexing

MEET US:
Website ► https://www.duomly.com
Blog ► https://www.blog.duomly.com
Facebook ►   / duomlyapp  
Twitter ►   / duomly  
Instagram ►  / duomly_programming_courses  
Linkedin ►   / duomlyapp  

#python #slicing #indexing