Skip to content

Instantly share code, notes, and snippets.

@mcmasterml
Created April 26, 2020 00:29
Show Gist options
  • Save mcmasterml/3d047823c175043e54524692ee70e699 to your computer and use it in GitHub Desktop.
Save mcmasterml/3d047823c175043e54524692ee70e699 to your computer and use it in GitHub Desktop.
Created on Skills Network Labs
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"squares = [\"red\", \"yellow\", \"green\"]"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"0 red\n",
"1 yellow\n",
"2 green\n"
]
}
],
"source": [
"for i, square in enumerate(squares):\n",
" print(i, square)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python",
"language": "python",
"name": "conda-env-python-py"
},
"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.6.10"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment