{"metadata": {"signature": "sha256:1b81168cac39f7c79b9052e4611d261dd2d112372075eeb1f51e800aaeea617b", "name": ""}, "worksheets": [{"cells": [{"cell_type": "markdown", "source": ["Getting help:\n", "\n", "1) Use TAB in IPython"], "metadata": {}}, {"collapsed": false, "outputs": [], "language": "python", "cell_type": "code", "prompt_number": 1, "input": ["a = [1,2,3]"], "metadata": {}}, {"collapsed": false, "outputs": [], "language": "python", "cell_type": "code", "prompt_number": 1, "input": [], "metadata": {}}, {"cell_type": "markdown", "source": ["2) Using `pydoc3` on the command line."], "metadata": {}}, {"cell_type": "markdown", "source": ["3) Online at "], "metadata": {}}, {"cell_type": "markdown", "source": ["----"], "metadata": {}}, {"cell_type": "markdown", "source": ["**A few things to look up in a quiet moment**"], "metadata": {}}, {"cell_type": "markdown", "source": ["String formatting"], "metadata": {}}, {"collapsed": false, "outputs": [{"output_type": "pyout", "metadata": {}, "prompt_number": 2, "text": ["'My name is Andreas and I like hiking'"]}], "language": "python", "cell_type": "code", "prompt_number": 2, "input": ["\"My name is {0} and I like {1}\".format(\"Andreas\", \"hiking\")"], "metadata": {}}, {"cell_type": "markdown", "source": ["---\n", "Dictionaries"], "metadata": {}}, {"collapsed": false, "outputs": [{"output_type": "pyout", "metadata": {}, "prompt_number": 3, "text": ["5000"]}], "language": "python", "cell_type": "code", "prompt_number": 3, "input": ["prices = {\"Tesla K40\": 5000, \"GTX Titan\":1400}\n", "prices[\"Tesla K40\"]"], "metadata": {}}], "metadata": {}}], "nbformat_minor": 0, "nbformat": 3}