CS377: Database Design - Iteration in Python (3 pts)
Explorer
GitHub
Connect to GitHub to push and pull your project files to a repository.
On the page that opens, create a token with repo scope, copy it, then paste it below.
Paste the personal access token you created on GitHub with repo scope.
Click Refresh to load commit history
Exercise Info
Goals
To use iteration to compute a discrete value
To use conditionals to make choices during each loop iteration
Instructions
Modify the ThreeXPlusOne.py file to solve the 3x+1 problem using a loop and conditional.
Trivia
This problem is part of the Collatz Conjecture which suggests that any value will eventually converge back to 1 after a finite number of iterations. We don’t know if this is true!