Python Slice Object

0
4χλμ.

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")

Αναζήτηση
Κατηγορίες
Διαβάζω περισσότερα
Contests
International Art Exhibit
All authors working in the formats of contemporary art are invited to participate in the NordArt...
από FWhoop Xelqua 2023-02-26 17:44:53 0 10χλμ.
Life Issues
Tangled. (2010)
The magically long-haired Rapunzel has spent her entire life in a tower, but now that a runaway...
από Leonard Pokrovski 2023-04-29 18:06:15 0 16χλμ.
College and University
Navigating Higher Education: A Guide to College and University
Navigating Higher Education: A Guide to College and University In the journey of personal and...
από Leonard Pokrovski 2024-06-18 20:58:46 0 12χλμ.
Television
FOX 26, Live TV Houston USA.
Houston area news, weather, traffic, sports and breaking news from FOX 26 Houston. Watch live...
από Nikolai Pokryshkin 2022-09-13 08:08:28 0 26χλμ.
Business
DIGITALIZATION AND INNOVATION IN THE FINANCIAL SECTOR: CURRENT TRENDS AND PROSPECTS
DIGITALIZATION AND INNOVATION IN THE FINANCIAL SECTOR: CURRENT TRENDS AND PROSPECTS Abstract:...
από Leonard Pokrovski 2024-08-11 14:58:46 0 7χλμ.
image/svg+xml


BigMoney.VIP Powered by Hosting Pokrov