Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

History

History
History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..

readme.md

Outline

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.