Machine Learning with Python

Python has libraries like scikit-learn and TensorFlow for machine learning.

Example (Linear Regression with Scikit-Learn):

from sklearn.linear_model import LinearRegression

X = [[1], [2], [3], [4], [5]]
y = [2, 4, 6, 8, 10]

model = LinearRegression()
model.fit(X, y)

print(model.predict([[6]]))  # Output: [12.]