Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. while validheight == False:
  2. height = float(input("Enter the desired height of the lighthouse (in metres): "))
  3. if height <= 0 or height >= 1000:
  4. print("Enter a valid height.")
  5. else:
  6. validheight = True
  7. while validdf == False:
  8. df = float(input("Enter the desired diameter of the bottom of the lighthouse (in metres): "))
  9. if df <= 0 or df >= 1000:
  10. print("Enter a valid diameter for the base.")
  11. else:
  12. validdf = True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement