Python Slicing Explained | Slice a Python List or Tuple or String | Python Slicing Examples ( 20+ )

Publicado el: 13 diciembre 2022
en el canal de: StatLearn Tech
47
0

Python Slicing Explained | Slice a Python List or Tuple or String | Python Slicing Examples ( 20+ )

In this video,

I have explained the Implementation of Slicing in Python
How Positive Indexed Slicing Works in Python
How Negative Indexed Slicing Works in Python
How to use Slicing in Python
How Start, Stop and Step Slicing Works in Python
20+ Examples Demonstrated

data = [ "john", "sam", "aj", "dj", "Hardy", "Python", "Statlearn", "Tech", "Learn", "Like" ]

print(data[3])
print(data[0:10:2])
print(data[0:])
print(data[:5])
print(data[:15])
print(data[4:10])
print(data[::3])
print(data[::2])
print(data[3:7])
print(data[2:8:3])
print(data[0:0])

print(data[::-1])
print(data[0:-11:-1])
print(data[-1:5:-2])
print(data[0:9:-1])
print(data[4:-11:-1])
print(data[-1:-4:-2])
print(data[-1:-11:-3])
print(data[3:-9:-1])
print(data[2:8:-3])
print(data[0:0:-1])

Link to Python Tutorials Series :    • Introduction to Python Programming La...  

💕 Like and Subscribe 💕


En esta página del sitio puede ver el video en línea Python Slicing Explained | Slice a Python List or Tuple or String | Python Slicing Examples ( 20+ ) de Duración hora minuto segunda en buena calidad , que subió el usuario StatLearn Tech 13 diciembre 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 47 veces y le gustó 0 a los espectadores. Disfruta viendo!