{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Homework 2 - Python for data analysis" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "*By Todd Gureckis and Brenden Lake*. Code shared under the [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/) license. Credit given where inspiration was obtained from others!" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "
\n", "Dog: ['Hairless', 'Short', 'Medium', 'Long', 'Wire', 'Curly']\n", "Cat: ['Hairless', 'Short', 'Medium', 'Long']\n", "Rabbit: ['Short', 'Long']\n", "Small & Furry: ['Hairless', 'Short', 'Long']\n", "Horse: []\n", "Bird: []\n", "Scales, Fins & Other: []\n", "Barnyard: ['Short', 'Long']\n", "\n", "
\n", "* \n", "* * \n", "* * * \n", "* * * * \n", "* * * * * \n", "\n", "
\n", " *\n", " * * *\n", " * * * * *\n", "* * * * * * *\n", " * * * * * \n", " * * *\n", " *\n", "\n", "
\n", "people = [1,0,0,0,0,0,0,0,0,0]\n", "for each number \"i\"\" in between 0 (the start) and the length of people (minus 1):\n", " if person \"i\" is standing up:\n", " make the person one to the right of person \"i\" stand up\n", " make person \"i\" sit down\n", " print people\n", "\n", "also remember,\n", "\n", "len(people) # gives you the length of the \"stadium\" of people \n", "people[0] # this is how you select individual \"people\"\n", "people[1]\n", "people[2]\n", "\n", "