fork download
  1. print("Кофе-машина")
  2.  
  3. money_amount = 12
  4.  
  5. cappucino_price = 150
  6. espresso_price = 80
  7. water_price = 20
  8. tea_price = 50
  9.  
  10. can_buy_something = False
  11.  
  12. if money_amount >= cappucino_price:
  13. print("Вы можете купить капучино")
  14. can_buy_something = True
  15.  
  16. if money_amount >= espresso_price:
  17. print("Вы можете купить эспрессо")
  18. can_buy_something = True
  19.  
  20. if money_amount >= water_price:
  21. print("Вы можете купить воду")
  22. can_buy_something = True
  23.  
  24. if money_amount >= tea_price:
  25. print("Вы можете купить чай")
  26. can_buy_something = True
  27.  
  28. if can_buy_something == False:
  29. print("Недостаточно средств :( Изучайте Python и зарабатывайте много!))")
Compilation error #stdin compilation error #stdout 0.03s 9200KB
stdin
Standard input is empty
compilation info
Traceback (most recent call last):
  File "/usr/lib/python3.7/py_compile.py", line 143, in compile
    _optimize=optimize)
  File "<frozen importlib._bootstrap_external>", line 791, in source_to_code
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "./prog.py", line 14
    can_buy_something = True
                           ^
TabError: inconsistent use of tabs and spaces in indentation

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.7/py_compile.py", line 147, in compile
    raise py_exc
py_compile.PyCompileError: Sorry: TabError: inconsistent use of tabs and spaces in indentation (prog.py, line 14)
stdout
Standard output is empty