Skip to content

Instantly share code, notes, and snippets.

@balouf
Last active October 16, 2024 06:15
Show Gist options
  • Save balouf/ee28114beeb1545aed7b682f0af36bd9 to your computer and use it in GitHub Desktop.
Save balouf/ee28114beeb1545aed7b682f0af36bd9 to your computer and use it in GitHub Desktop.
Live Coding
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"metadata": {},
"cell_type": "markdown",
"source": "# Cooking exercise"
},
{
"metadata": {},
"cell_type": "markdown",
"source": "You have two files (compressed text files):\n- `ingredients.txt.gz`: a list of ingredients, clustered by category\n- `recipes.txt.gz`: a list of recipes"
},
{
"metadata": {},
"cell_type": "markdown",
"source": "1. How many recipes do not contain any ingredient from category Proteins or Dairy?\n2. Find recipes with all types of ingredients.\n3. Weight each ingredient according to how you like it (you can mock the weights). Give your favorite recipe."
}
],
"metadata": {
"kernelspec": {
"name": "python3",
"display_name": "Python 3 (ipykernel)",
"language": "python"
},
"toc": {
"nav_menu": {},
"number_sections": true,
"sideBar": true,
"skip_h1_title": true,
"base_numbering": 1,
"title_cell": "Table of Contents",
"title_sidebar": "Contents",
"toc_cell": false,
"toc_position": {},
"toc_section_display": true,
"toc_window_display": false
},
"language_info": {
"name": "python",
"version": "3.11.4",
"mimetype": "text/x-python",
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"pygments_lexer": "ipython3",
"nbconvert_exporter": "python",
"file_extension": ".py"
},
"gist": {
"id": "cf6b1f99f4c7acf7170e951c98d46c58",
"data": {
"description": "Live Coding",
"public": true
}
},
"_draft": {
"nbviewer_url": "https://gist.github.com/balouf/cf6b1f99f4c7acf7170e951c98d46c58"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment