update,
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# you can download at
|
||||
# https://goo.gl/WKdcqo
|
||||
|
||||
|
||||
colors = ['red', 'blue', 'green']
|
||||
|
||||
colors
|
||||
|
||||
colors[0] # zero base indexing
|
||||
colors[1]
|
||||
colors[2]
|
||||
|
||||
colors.append('purple')
|
||||
colors
|
||||
|
||||
|
||||
colors.remove('green')
|
||||
colors
|
||||
|
||||
|
||||
colors.extend(['green', 'yellow'])
|
||||
|
||||
'green' in colors
|
||||
|
||||
colors[3]
|
||||
|
||||
type(colors)
|
||||
|
||||
help(colors)
|
Reference in New Issue
Block a user