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

Simulating Real-World Processes With SimPy

Corresponding code for "Simulating Real-World Processes With SimPy."

Running the Script

The file simulate.py contains the script that mimics the tutorial code. You can execute the code by running python3 simulate.py from the directory that contains the file.

Here is some sample output:

$ python3 simulate.py
Input # of cashiers working: 1
Input # of servers working: 1
Input # of ushers working: 1
Running simulation...
The average wait time is 42 minutes and 26 seconds.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.