python multiply list bt number

Do you want to know the information about “python multiply list bt number”. If yes, you’re in the correct tutorial.

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]

Final Words

I hope this tutorial helps you to know about “python multiply list bt number”. If you have any questions regarding this post please let us know via the comment section. Share this tutorial with your friends and family via social networks.

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coder Diksha. Here, I post about programming to help developers.

Share on:

Leave a Comment