Advertisement
Guest User

Untitled

a guest
Sep 16th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. finished = False
  2.  
  3. while not finished:
  4. value = int(input("Enter a value to be cubed: "))
  5. cube = value ** 3
  6. print(value, "cubed is", cube)
  7. choice = input("Cube another number? (y/n): ")
  8. if choice.lower() == "n":
  9. finished = True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement