Discover and read the best of Twitter Threads about #pythonic

Most recents (1)

Ever wondered what algorithm can sum a list/array the fastest in Python? Here's a surface level overview

A Thread ๐Ÿงต๐Ÿ‘‡

#python3 #pythonic #pythonprogramming #programming #Algorithms #DataScience Image
First of we generated a random list of "1000000" numbers to feed all the algorithms.

This very first algorithm uses the built-in sum method. Its the easiest one to implement. Image
Second algorithm is just the traditional approach of creating a variable and then using a for loop to add the sum into it. Image
Read 8 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!