CubedRoot.py

Changed while loop to a for loop.