: Slice : List PYTHON TUTORIALS
Ajax
Ajax Examples
Ajax Tutorials
Scripts and Programs
Javascript
Javascript Examples Tutorials
DHTML Tutorials
Javascript References
Scripts and Programs
HTML
HTML Tutorials
HTML References
HTML DOM 0 References
HTML DOM 2 References
CSS
CSS Tutorials
CSS References
PHP
PHP Source Code
PHP References
Scripts and Programs
C#
C# Source Code
C# Examples
PYTHON TUTORIALS
»
List
»
Slice
»
126.1 .
The starting and ending indices can exceed the length of the string.
Hits: 1050
126.2 .
Revese and skip
Hits: 859
126.3 .
Negative Indices
Hits: 1066
126.4 .
Middle slice
Hits: 929
126.5 .
End slice
Hits: 904
126.6 .
Slicing a List
Hits: 1943
126.7 .
Negative step size
Hits: 940
126.8 .
if you want every fourth element of a sequence, you only have to supply a step size of four
Hits: 908
126.9 .
A step size of two will include only every other element of the interval between the start and the end
Hits: 843
126.10 .
Another parameter, which normally is left implicit, is the step length
Hits: 883
126.11 .
copy the entire sequence, you may leave out both indices
Hits: 847
126.12 .
If the slice continues to the start of the sequence, you may simply leave out the first index
Hits: 911
126.13 .
If the slice continues to the end of the sequence, you may simply leave out the last index
Hits: 885
126.14 .
Slice from the end
Hits: 894
126.15 .
Slice more than what you have
Hits: 895
126.16 .
The first is inclusive, and the second is exclusive
Hits: 907
126.17 .
Slicing Shorthand
Hits: 875
126.18 .
LHS slice and the RHS may each be of any length
Hits: 910
126.19 .
Slicing to access ranges of elements
Hits: 949
PYTHON TUTORIALS
List
»
Slice
Introduction
Length
Append
List Comprehension
Assignment
Loop through
Compare List
Max
Concatenate
Member in
Convert to list
Min
Count
Multiply
Delete
Pop
Enumerate
Reverse
Extend
Slice
Index Search
Sort
Index
Sum
Insert
Buildin Function
Buildin Module
CGI Web
Class
Collections
Data Type
Database
Dictionary
File
Function
Introduction
List
Network
Operator
Regular Expressions
Statement
String
Thread
Tkinker
Tuple
Windows
WxPython
XML