Welcome to Jupyter notebook!

This is an example of Jupyter notebook.

If you want to run python code, write the code.


In [3]:
for i in range(16):
    if i % 15 == 0:
        print("FizzBuzz")
    elif i % 3 == 0:
        print("Fizz")
    elif i % 5 == 0:
        print("Buzz")
    else:
        print(str(i))


FizzBuzz
1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz

Running the code

When you run the code, the results are print in your screen.

Error

If your code contains some errors, Jupyter teaches you why your code is wrong.


In [4]:
print(5 / 0)


---------------------------------------------------------------------------
ZeroDivisionError                         Traceback (most recent call last)
<ipython-input-4-ca8321cec4b1> in <module>()
----> 1 print(5 / 0)

ZeroDivisionError: division by zero

In [ ]: