To use conditionals to make choices during each loop iteration
Modify the ThreeXPlusOne.py file to solve the 3x+1 problem using a loop and conditional.
Enter your Ursinus netid before clicking run. This is not your ID number or your email. For example, my netid is wmongan (non Ursinus students can simply enter their name to get this to run, but they won't get an e-mail record or any form of credit).
Clicking Run below will check your work and, if it passes, will submit your work automatically. You must be connected to the VPN for submission to be successful! You will receive a copy of your code via e-mail, so you'll know that it was submitted if you receive that e-mail! VPN access requires Multi-Factor Authentication, which sends you a code when you log into the network. Instructions on configuring these for your account can be found here.
# TODO - solve the 3x+1 problem here
# while x is not 1, set x to half of itself if val is even, and to 3x+1 if it is odd
# count and return the number of iterations you needed until x became 1