{"worksheets": [{"cells": [{"source": ["Getting help:\n", "\n", "1) Use TAB in IPython"], "metadata": {}, "cell_type": "markdown"}, {"outputs": [], "language": "python", "input": ["a = [1,2,3]"], "cell_type": "code", "prompt_number": 1, "metadata": {}, "collapsed": false}, {"outputs": [], "language": "python", "input": [], "cell_type": "code", "prompt_number": 1, "metadata": {}, "collapsed": false}, {"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": {}, "cell_type": "markdown"}, {"outputs": [{"text": ["'My name is Andreas and I like hiking'"], "prompt_number": 2, "metadata": {}, "output_type": "pyout"}], "language": "python", "input": ["\"My name is {0} and I like {1}\".format(\"Andreas\", \"hiking\")"], "cell_type": "code", "prompt_number": 2, "metadata": {}, "collapsed": false}, {"source": ["---\n", "Dictionaries"], "metadata": {}, "cell_type": "markdown"}, {"outputs": [{"text": ["5000"], "prompt_number": 3, "metadata": {}, "output_type": "pyout"}], "language": "python", "input": ["prices = {\"Tesla K40\": 5000, \"GTX Titan\":1400}\n", "prices[\"Tesla K40\"]"], "cell_type": "code", "prompt_number": 3, "metadata": {}, "collapsed": false}], "metadata": {}}], "nbformat_minor": 0, "metadata": {"signature": "sha256:1b81168cac39f7c79b9052e4611d261dd2d112372075eeb1f51e800aaeea617b", "name": ""}, "nbformat": 3}