Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to write a correct python code

a = [3, 4, 5]
b = a

# assign the variable "a" to a new list without changing "b"
a = [i + 3 for i in a]
Source by docs.python-guide.org #
 
PREVIOUS NEXT
Tagged: #write #correct #python #code
ADD COMMENT
Topic
Name
5+7 =