beautypg.com

10 sequence types: tuples, 11 sequence types: lists – Rainbow Electronics GM862-GPS User Manual

Page 84

background image





Easy Script

in Python

80000ST10020a Rev.8 - 01/10/08

Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved

page 84 of 100








The following attribute is supported:

__methods__

For string methods refer to Python 2.0.1 Library Reference for further details.

4.2.10 Sequence Types: Tuples


The following operations are supported with the tuples:











4.2.11 Sequence Types: Lists


The following operations are supported with the lists:

s.strip()
s.swapcase()
s.translate(table[, deletechars])
s.upper()

x in s

x not in s

s + t

s * n, n * s

s[i]

s[i:j]

len(s)

min(s)

max(s)

x in s

x not in s

s + t

s * n, n * s

s[i]

s[i:j]

len(s)

min(s)