07:31sum(range(n)) != n(n+1)/2
From the creator
It's not the "n" you're looking for! I received hundreds of comments in my post popular video that sum(range(n)) is supposed to be n(n+1)/2... except it's not! What's going on then? ― mCoding with James Murphy (https://mcoding.io) Source code: https://github.com/mCodingLLC/VideosSampleCode fastest way to loop: https://youtu.be/Qgevy75co8c SUPPORT ME ⭐ --------------------------------------------------- Patreon: https://patreon.com/mCoding Paypal: https://www.paypal.com/donate/?hosted_button_id=VJY5SLZ8BJHEE Other donations: https://mcoding.io/donate Top patrons and donors: Jameson, Laura M, Vahnekie, Dragos C, Matt R, Casey G, Johan A, John Martin, Jason F, Mutual Information, Neel R BE ACTIVE IN MY COMMUNITY 😄 --------------------------------------------------- Discord: https://discord.gg/Ye9yJtZQuN Github: https://github.com/mCodingLLC/ Reddit: https://www.reddit.com/r/mCoding/ Facebook: https://www.facebook.com/james.mcoding
Published 2022-05-29 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.





