{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# A Jupyter notebook to convert a blueberry muffin recipe to metric units\n", "\n", "## Recipie\n", "\n", " * 1/2 teaspon salt\n", " *\n", " *\n", " *" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "from conversions import ts2ml #, , , " ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "mL of salt: 2.5 mL\n" ] } ], "source": [ "ts_salt = ts2ml(0.5)\n", "print(f'mL of salt: {round(ts_salt,1)} mL')" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.0" } }, "nbformat": 4, "nbformat_minor": 2 }