First steps

First steps#

Start the Ipython shell (an enhanced interactive Python shell):

  • by typing “ipython” from a Linux/Mac terminal, or from the Windows cmd shell,

  • or by starting the program from a menu, e.g. the Anaconda Navigator, the Python(x,y) menu if you have installed one of these scientific-Python suites.

Once you have started the interpreter, type

print("Hello, world!")
Hello, world!

To get yourself started, type the following stack of instructions

a = 3
b = 2*a
type(b)
int
print(b)
6
a*b
18
b = 'hello'
type(b)
str
b + b
'hellohello'
2*b
'hellohello'