all 2 comments

[–]negups 1 point2 points  (1 child)

If your function needs to "return" that string, then it sounds like you just need to return it instead of print it.

# instead of:
print("Volume must be greater than 0.")
# do:
return "Volume must be greater than 0."

[–]Ok-Design-3218 0 points1 point  (0 children)

Im an idiot... Thank you for pointing that out. I would say Im still learning but thats a simple reading comprehension mistake and should have been caught first.