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