jupyter notebook test

In IPython, input code, and press Enter. Then you can see the result right away.

1
100 + 200
300

If you want Python to print out a word or sentence, you can use “print”. Remember you should enclose the word or sentence by single or double quotes:

1
print "hello, world"
hello, world
1
print 'this is my first code in python!'
this is my first code in python!

These texts enclosed we try to print out are called strings, which we will learn later.

At last, use “exit()” to exit Python, then we are done with our first Python code!