# Python Introduction: A few more things¶

Getting help:

1) Use TAB in IPython

In [1]:

    a = [1,2,3]

In [1]:

2) Using `pydoc3` on the command line.

3) Online at http://docs.python.org/

A few things to look up in a quiet moment

String formatting

In [2]:

    "My name is {0} and I like {1}".format("Andreas", "hiking")

Out[2]:

    'My name is Andreas and I like hiking'

Dictionaries

In [3]:

    prices = {"Tesla K40": 5000, "GTX Titan":1400}
    prices["Tesla K40"]

Out[3]:

    5000