+ 5
Translate this Java code to Python
Coffee coffee = new Coffee(); if (coffee.Empty){ coffee.Refill(); }else { coffee.Drink(); }
1 Resposta
+ 3
Like this?
coffee = Coffee()
if coffee.empty:
coffee.refill()
else:
coffee.drink()
Coffee coffee = new Coffee(); if (coffee.Empty){ coffee.Refill(); }else { coffee.Drink(); }