Operations on SequencesThe following operations apply to all sequences
Examplesa = [1,2,3] b = [5,6] c = a + b # c = [1,2,3,5,6] d = a * 2 # d = [1,2,3,1,2,3] e = c[2:4] # e = [3,5] |
<<< | O'Reilly OSCON 2000, Introduction to Python, Slide 55 July 17, 2000, beazley@cs.uchicago.edu |
>>> |