Back to Browse

Collatz Sequence Algorithm in Python!

14.6K views
May 8, 2020
5:34

Today we look at a project from the book “Automate the Boring Stuff with Python” by Al Sweigart. We write a function to calculate and display the Collatz Sequence of a number provided via user input. Did you catch the last video? https://www.youtube.com/watch?v=LC2KW_6lMw4 How to access the book: Do a google pdf search by typing “automate the boring stuff with python filetype:pdf” into Google. Several sources should come up. A cool visualisation of the Collatz sequence from The Coding Train: https://www.youtube.com/watch?v=EYLWxwo1Ed8&t=1213s Background music: Airport Lounge - Disco Ultralounge by Kevin MacLeod is licensed under a Creative Commons Attribution license (https://creativecommons.org/licenses/by/4.0/) Source: http://incompetech.com/music/royalty-free/index.html?isrc=USUAN1100806 Artist: http://incompetech.com/ Congratulations! You made it to the bottom of the description box. Have a byte 0001 0001 !

Download

0 formats

No download links available.

Collatz Sequence Algorithm in Python! | NatokHD