January 2019
Beginner
318 pages
8h 23m
English
There are five basic list operations:
|
Description |
Expression |
Result |
|
Concatenation |
[30, 50, 60] + ['Hello', 75, 66] |
[30,50,60,'Hello',75,66] |
|
Membership |
45 in [45,58,99,65] |
True |
|
Iteration |
for x in [45,58,99] : print (x,end = ' ') |
45 58 99 |
|
Repetition |
['Python'] * 3 |
['python', 'python', 'python'] |
|
Length |
len([45, 58, 99, 65]) |
4 |
Read now
Unlock full access