In the following code:
def hotel_cost(nights): return 140*nights
I don’t understand the point of return? Does it save it as a formula? As far as I know, the only way “return” differs from “print” is that it does not appear in the shell?
Thanks in advance for explaining to me in layman’s terms!