Amazing-Python-Scripts

Форк
0

readme.md

Coffee Machine Game in Python

This is a Python program that simulates a coffee machine. It allows you to choose from three types of coffee: espresso, latte, and cappuccino. You can check the availability of resources (water, milk, coffee beans, and cups) and buy a coffee by inserting the required amount of coins.

Prerequisites

  • Python 3.x

Usage

  1. Clone the repository or download the coffee-machine-py-game.py file.

  2. Open a terminal or command prompt and navigate to the directory where the file is located.

  3. Run the following command to start the program:

    python coffee-machine-py-game.py
  4. Follow the prompts to choose your desired coffee and enter the number of coins for payment.

  5. Enjoy your coffee!

Output

output

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.