fork download
print("Кофе-машина")

money_amount = 45

cappucino_price = 150
espresso_price = 80
water_price =20
milk_price =35

can_buy_something = False

if money_amount >= cappucino_price:
	print("Вы можете купить капучино")
	can_buy_something = True
	
if money_amount >= espresso_price:
	print("Вы можете купить эспрессо")
	can_buy_something = True
	
if money_amount >= water_price:
	print("Вы можете купить воду")
	can_buy_something = True
	
if money_amount >= milk_price:
	print("Вы можете купить молоко")
	can_buy_something = True
	
if can_buy_something == False:
	print("Недостаточно средств :( Изучайте Python и зарабатывайте много!))")
Success #stdin #stdout 0.02s 9260KB
stdin
Standard input is empty
stdout
Кофе-машина
Вы можете купить воду
Вы можете купить молоко