(Mar-12-2018, 06:42 PM)snippsat Wrote: Maybe CoffeeScript on a Coffee cup Similar will look like this in Python: coffee = Coffee() if coffee.empty(): coffee.refill() else: coffee.drink()
If want more text something like this. import time coffee = Coffee() if coffee.status() == coffee.empty(): time.sleep(10) return coffee.refilled() else: coffee.drink()
Thank you so much!! I’m sure he’s going to love it! :)
(Mar-12-2018, 06:42 PM)snippsat Wrote: Maybe CoffeeScript on a Coffee cup Similar will look like this in Python: coffee = Coffee() if coffee.empty(): coffee.refill() else: coffee.drink()
If want more text something like this. import time coffee = Coffee() if coffee.status() == coffee.empty(): time.sleep(10) return coffee.refilled() else: coffee.drink()
What does time.sleep(10) mean?