: 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: 1059
126.2 .
Revese and skip
Hits: 867
126.3 .
Negative Indices
Hits: 1073
126.4 .
Middle slice
Hits: 937
126.5 .
End slice
Hits: 912
126.6 .
Slicing a List
Hits: 1957
126.7 .
Negative step size
Hits: 950
126.8 .
if you want every fourth element of a sequence, you only have to supply a step size of four
Hits: 915
126.9 .
A step size of two will include only every other element of the interval between the start and the end
Hits: 850
126.10 .
Another parameter, which normally is left implicit, is the step length
Hits: 893
126.11 .
copy the entire sequence, you may leave out both indices
Hits: 854
126.12 .
If the slice continues to the start of the sequence, you may simply leave out the first index
Hits: 918
126.13 .
If the slice continues to the end of the sequence, you may simply leave out the last index
Hits: 890
126.14 .
Slice from the end
Hits: 899
126.15 .
Slice more than what you have
Hits: 902
126.16 .
The first is inclusive, and the second is exclusive
Hits: 915
126.17 .
Slicing Shorthand
Hits: 881
126.18 .
LHS slice and the RHS may each be of any length
Hits: 915
126.19 .
Slicing to access ranges of elements
Hits: 957
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