Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

list in Python

# A list is a collection of items. 
# Lists are mutable: you can change their elements and their size.
# Similar to List<T> in C#, ArrayList<T> in Java, and array in JavaScript.

foo = [1, 2, True, "mixing types is fine"]
print(foo[0])
# Output - 1

foo[0] = 3
print(foo[0]) 
# Output - 3
Source by www.codeproject.com #
 
PREVIOUS NEXT
Tagged: #list #Python
ADD COMMENT
Topic
Name
9+5 =