In the exercise Practice Makes Perfect I am getting an error msg, my code works as I want it too but I am getting an error msg that is not allowing me to proceed. I do not want to skip ahead in case there is something I am missing.
Error Msg: cube(1) returned '1 cubed is 1' instead of 1.
Thanks in advance of any help you can provide.
number = float(raw_input("Please enter in a number: ")) def cube(number): cubed = number*number*number return "%.0f cubed is %.0f" % (number,cubed) def by_three(number): if number % 3 == 0: print cube(number) return "%.0f is divisible of 3" % (number) else: print "%.0f is not divisible of 3" % (number) return False print by_three(number)