Learn JUPYTER-NOTEBOOK with Real Code Examples
Updated Nov 26, 2025
Code Sample Descriptions
1
Hello World in Jupyter Notebook (Python)
print("Hello World")
A simple Jupyter Notebook cell that prints 'Hello World'.
2
Hello World with Markdown in Jupyter Notebook
# Hello World
A Markdown cell in Jupyter Notebook displaying 'Hello World' as formatted text.
3
Jupyter Notebook Math Example
a = 5
b = 10
print(f"Sum: {a + b}")
A Python cell performing a simple math operation and printing the result.
4
Jupyter Notebook List Example
fruits = ['apple', 'banana', 'cherry']
for fruit in fruits:
print(fruit)
A Python cell creating a list and iterating over it.
5
Jupyter Notebook Function Example
def greet(name):
return f"Hello, {name}!"
print(greet('Alice'))
Defines a function and calls it within a Jupyter cell.
6
Jupyter Notebook Plot Example
import matplotlib.pyplot as plt
x = [1,2,3,4]
y = [10,20,25,30]
plt.plot(x,y)
plt.title('Line Graph')
plt.show()
Uses matplotlib to plot a simple line graph.
7
Jupyter Notebook Pandas DataFrame Example
import pandas as pd
data = {'Name':['Alice','Bob'],'Age':[25,30]}
df = pd.DataFrame(data)
df
Creates a simple Pandas DataFrame and displays it.
8
Jupyter Notebook Markdown Header Example
# Main Header
## Sub Header
**Bold Text** and *Italic Text*
A Markdown cell with multiple headers and text formatting.
9
Jupyter Notebook Import NumPy Example
import numpy as np
arr = np.array([1,2,3,4,5])
print(arr)
Imports NumPy and creates a simple array.
10
Jupyter Notebook Markdown List Example
- Item 1
- Item 2
- Item 3
A Markdown cell displaying a bulleted list.