Learning

This notebook contains some simple examples of using Jupyter Notebook and Python3

Example 1: Hello, World


In [1]:
my_name = "Jerry"
hello_statement = "Hello, " + my_name
print(hello_statement, end="\n\n")
x = 10


Hello, Jerry

Example 2: World's best loop is here


In [2]:
for j in range(1, 5):
    x = x + j
    print("j={0}  x={1}".format(j, x))


j=1  x=11
j=2  x=13
j=3  x=16
j=4  x=20

In [ ]: