Google Colab (short for Collaboratory) is a free, cloud-based Jupyter Notebook environment hosted by Google. It allows anyone to write and execute arbitrary Python code through a web browser, making it highly popular for machine learning, data analysis, and education
Popular Online Python Options
Google Colab: A cloud-based notebook ideal for data science, machine learning, and sharing code blocks.
https://colab.research.google.com/
https://colab.research.google.com/drive/18Wy4SgDS88V5wD7Dx46vVdCIVSCEA7pB
BOOKS:
https://python-course.eu/books/bernd_klein_python_and_machine_learning_a4.pdf
https://github.com/CodeWithHarry/The-Ultimate-Python
Course/blob/main/The%20Ultimate%20Python%20Handbook.pdf
EXAMPLE #1
print ("Hello Hmillan 2026 Sept 10")
REFERENCE:
EXAMPLE #2
import numpy as np
import matplotlib.pylab as plt
import matplotlib
#data for plot
t = np.arange(0.0,2.0,0.01)
s = 1 + np.sin(2*np.pi *t)
fig, ax =plt.subplots()
ax.plot(t,s)
print ("Hello Hmillan 2026 Sept 10")
ax.set(xlabel ='time (s)', ylabel ='volage (mv)',
title ='About as simple as it gets, folks')
ax.grid()
EXAMPLE #3
from google.colab import ai
response = ai.generate_text("What is the capital of France?")
)
EXAMPLE #4
TP = 42
TN = 32
FP = 8
FN = 18
Accuracy = (TP + TN)/(TP + TN + FP + FN)
print(Accuracy)
EXAMPLE #5
from matplotlib import pyplot as plt
import numpy as np
# Generate 100 random data points along 3 dimensions
x, y, scale = np.random.randn(3, 100)
fig, ax = plt.subplots()
# Map each onto a scatterplot we'll create with Matplotlib
ax.scatter(x=x, y=y, c=scale, s=np.abs(scale)*500)
ax.set(title="Some random data, created with JupyterLab!")
plt.show()