Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python multiply list bt number

my_list = [1, 2, 3, 4, 5]
my_new_list = [i * 5 for i in my_list]

>>> print(my_new_list)
[5, 10, 15, 20, 25]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #multiply #list #bt #number
ADD COMMENT
Topic
Name
1+2 =