Python Slice Object

0
12KB

A slice object is used to specify how to slice a sequence. You can specify where to start the slicing, and where to end. You can also specify the step, which allows you to e.g. slice only every other item. Here's an example of the usage:

x = ("hi", "hello", "greetings", "hola")

y = slice(3)

print(x[y])

 

>> ("hi", "hello", "greetings")

Suche
Kategorien
Mehr lesen
Financial Services
How to make big amounts of money
How to Make Big MoneyThe desire to earn big money should have a practical implementation in the...
Von FWhoop Xelqua 2023-06-13 19:49:49 0 23KB
Television
Fox 31 Denver. Live TV. Colorado, USA
KDVR is a Fox-affiliated television station located in Denver, Colorado, United States. When no...
Von Nikolai Pokryshkin 2022-10-17 10:43:26 0 31KB
Television
TCT Live TV. Marion, Illinois, United States.
Take a look at the TCT Network and you will find award-winning exclusive programming, live...
Von Nikolai Pokryshkin 2022-11-21 18:17:44 0 38KB
Business
What Are Career Paths?
Exploring Roles in Analytics, Operations Research, Consulting, Logistics, Finance, Healthcare,...
Von Dacey Rankins 2025-07-05 18:44:24 0 7KB
Научная фантастика и фэнтези
Апокалипсис. Дорога сквозь тьму. Broken Darkness. (2021)
После того как метеоритный дождь уничтожил практически все живое на Земле, Сэм вынужден выжить...
Von Nikolai Pokryshkin 2022-09-11 22:27:06 0 51KB

BigMoney.VIP Powered by Hosting Pokrov