: 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: 1090
126.2 .
Revese and skip
Hits: 893
126.3 .
Negative Indices
Hits: 1100
126.4 .
Middle slice
Hits: 961
126.5 .
End slice
Hits: 938
126.6 .
Slicing a List
Hits: 2000
126.7 .
Negative step size
Hits: 979
126.8 .
if you want every fourth element of a sequence, you only have to supply a step size of four
Hits: 937
126.9 .
A step size of two will include only every other element of the interval between the start and the end
Hits: 873
126.10 .
Another parameter, which normally is left implicit, is the step length
Hits: 917
126.11 .
copy the entire sequence, you may leave out both indices
Hits: 880
126.12 .
If the slice continues to the start of the sequence, you may simply leave out the first index
Hits: 942
126.13 .
If the slice continues to the end of the sequence, you may simply leave out the last index
Hits: 914
126.14 .
Slice from the end
Hits: 928
126.15 .
Slice more than what you have
Hits: 931
126.16 .
The first is inclusive, and the second is exclusive
Hits: 939
126.17 .
Slicing Shorthand
Hits: 910
126.18 .
LHS slice and the RHS may each be of any length
Hits: 940
126.19 .
Slicing to access ranges of elements
Hits: 986
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