Day 11–15 Python

harichselvamc
1 min readJan 6, 2023

--

day 11 to 15

For days 11 to 15 of your Python learning journey, you should continue working on your small project and expand upon it. You can also start exploring more advanced topics in Python such as data visualization, machine learning, and web development.

Here are a few examples of concepts you might encounter during these days, along with some code snippets that demonstrate how they work:

Data Visualization:

import matplotlib.pyplot as plt

x = [1, 2, 3, 4]
y = [1, 4, 9, 16]

plt.plot(x, y)
plt.show()

Machine learning:

import sklearn
from sklearn.ensemble import RandomForestClassifier

# training a classifier
X = [[0, 0], [1, 1]]
y = [0, 1]
clf = RandomForestClassifier()
clf.fit(X, y)

# making predictions
print(clf.predict([[2, 2]])) # [1]
print(clf.predict([[0, 1]])) # [0]

Web Development

import flask

app = flask.Flask(__name__)

@app.route("/")
def index():
return "Hello, world!"

app.run()

I hope that these Python Preparation Plans will help you enhance your interest in programming as well as python and then all python topics. Please feel free to provide insightful remarks in the space below.

20days-python-plans

--

--

harichselvamc

I am a quick learner with a good eye for detail. I am also an exceptional coder with a great work ethic.