SHARE
TWEET

Untitled

a guest Sep 16th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top