<filename>examples/car/components/mod2_cmp1.py<gh_stars>1-10
from time import sleep
import shared


def main(_input_consumed, results_provided):
    """
    part price calculations
    """
    count = _input_consumed["part_count"]
    name = _input_consumed["part_name"]
    sleep(0.1)
    results_provided["part_price"] = count * shared.PRICE_FOR_NAME[name]


def version():
    return "1.3.1"

<filename>examples/car/components/mod2_cmp1.py<gh_stars>1-10
from time import sleep
import shared


def main(_input_consumed, results_provided):
    """
    part price calculations
    """
    count = _input_consumed["part_count"]
    name = _input_consumed["part_name"]
    sleep(0.1)
    results_provided["part_price"] = count * shared.PRICE_FOR_NAME[name]


def version():
    return "1.3.1"

part price calculations