Govind
Govind
ON
Submitted by
Student of
COMPUTER DEPARTMENT
Summer Internship(4330001) 1
CONFIRMATION LETTER
Summer Internship(4330001) 2
CERTIFICATE OF COMPLETION
II
COMPANY PROFILE
Summer Internship(4330001) 3
Established in 2016, incorporation with our parent IT company, INFOLABZ IT SERVICES
PVT. LTD. has managed to make it's own position in IT Sector. We are involved in Web
Development, App Development, Progressive Web Application Development, IOT solutions,
Graphics & Designing, Digital Marketing, Domain & Hosting services, SMS services etc.
In the span of seven years we have managed to deliver all projects on time with utmost accuracy
to our clients across the globe. We have dedicated teams of experienced and hard working
developers. Our developers who are always willing to take new challenges and looking forward
to learn new things, are heart of this company.
Our objective is to sustain with exponential growth in IT industry. Our mission is to deliver the
best with top notch quality every quarter and vision is to develop a product with one of its kind
concept which could be used by millions of people.
TABLE OF CONTENT
Summer Internship(4330001) 4
WEEK / DAY NO CONTENT
DECLARATION
OFFER LETTER
COMPANY PROFILE
- BASICS OF PYTHON
- DICTIONAY, LIST
- REQUESTS PACKAGE
- API
- PERMISSIONS TASK
Summer Internship(4330001) 5
WEEK 1 03 JULY 2024
- MATPLOTLIB
Summer Internship(4330001) 6
WEEK 1 :
PYTHON :
Python is a versatile and widely-used high-level programming language known for its
simplicity and readability. Created by Guido van Rossum and first released in 1991, Python
emphasizes code readability and a clean syntax, making it an excellent choice for both beginners
and experienced programmers. It supports various programming paradigms, including
procedural, object-oriented, and functional programming.
TOOLS:
PYTHON ( INTERPRETER ) :
URL : https://www.python.org/downloads/
SIZE : 24.2 MB
Summer Internship(4330001) 7
PYCHARM ( IDE ) :
URL : https://www.jetbrains.com/pycharm/download/?section=windows
SIZE : 416 MB
In Python, a dictionary is a built-in data structure that stores a collection of key-value pairs. Each
key is unique and maps to a specific value. Dictionaries are enclosed in curly braces {}, and key-
value pairs are separated by colons :. They offer fast access to values based on their keys and are
often used for storing and retrieving data efficiently using meaningful labels (keys).
Summer Internship(4330001) 8
PROJECT 1 : AUTOMATE - BUY, RENT OR SELL CARS
mydata = {
"status": "success",
"data": {
"username": "infolabz",
"email": "[email protected]",
"age": 30,
"licence_active": True,
"registration_date": "15 May 2023",
"car_data": {
"name": "MARUTI SWIFT DZIRE",
"color": "BLUE",
"mode": "automatic",
"fual": "petrol",
"average": "18 Kms"
},
},
"message": "User data retrieved successfully."
}
Summer Internship(4330001) 9
PROGRAM AND OUTPUT:
The "requests" package in Python is a widely used library for making HTTP requests to interact
with web services, retrieve data from websites, or send data to web servers. It simplifies the
process of sending HTTP requests and handling HTTP responses, making it easier to work with
web APIs and perform tasks like web scraping or interacting with web services.
INSTALL PACKAGE:
Go to terminal -> pip install requests
WHAT IS API?
An API (Application Programming Interface) is a set of rules that allows different software
applications to communicate with each other, enabling them to share data and functionality.
Summer Internship(4330001) 10
API LINK 1 : https://www.gov.uk/bank-holidays.json
Summer Internship(4330001) 11
DATA VISUALIZATION :
Data visualization in Python refers to the practice of creating graphical representations, such as
charts, graphs, and plots, to effectively communicate insights and patterns found within datasets.
Python provides various libraries, such as Matplotlib, Seaborn, Plotly, and others, that offer tools
for creating a wide range of visualizations. These visualizations help in understanding complex
data, identifying trends, making informed decisions, and presenting findings to others in a more
accessible and meaningful way.
MATPLOTLIB :
Matplotlib is a popular Python library used for creating static, interactive, and animated
visualizations in the form of charts, graphs, and plots. It provides a flexible and customizable
framework for generating various types of visual representations of data. Matplotlib is widely
used in data analysis, scientific research, and other fields where data visualization is crucial. It
offers a wide range of plotting options, including line plots, bar plots, scatter plots, histograms,
and more, making it a versatile tool for communicating insights from datasets.
Summer Internship(4330001) 12
PROGRAM:
plt.xlabel('Car Names')
plt.ylabel('Sales')
plt.title('Car Sales')
OUTPUT:
Summer Internship(4330001) 13
years = [2018, 2019, 2020, 2021, 2022]
toyota_sales = [1200, 1300, 1100, 1400, 1500]
honda_sales = [950, 1050, 1000, 1100, 1200]
ford_sales = [800, 900, 850, 950, 1000]
PROGRAM:
# Adding legend
plt.legend()
OUTPUT:
Summer Internship(4330001) 14
INTRODUCTION TO DJANGO FRAMEWORK:
Django is a high-level, open-source web framework written in Python that encourages rapid
development and clean, pragmatic design. It follows the "batteries-included" philosophy, which
means it provides a wide range of built-in features and tools to simplify and accelerate the
development of web applications. Django is particularly well-suited for building robust, scalable,
and maintainable web applications.
Summer Internship(4330001) 15
STEP 2 : Create Django project : django-admin startproject (project name ) .
Summer Internship(4330001) 16
STEP 3 : Check for changes in db structure : python manage.py makemigrations
Summer Internship(4330001) 17
STEP 5 : Run project : python manage.py runserver
Summer Internship(4330001) 18
STEP 6: Create superuser : python manage.py createsuperuser
Summer Internship(4330001) 19
PROJECT DATA DICTIONARY:
1. Category:
Field Name Field Type
CATEGORY_NAME
2. Brand:
Field Name Field Type
BRAND_NAME
3. City:
Field Name Field Type
CITY_NAME
4. Area:
Field Name Field Type
AREA_NAME
Summer Internship(4330001) 20
CITYID(Foreign Key) Referencing to City Model
5. Users
Field Name Field Type
NAME
EMAIL
PHONE
PASSWORD CharField()
ADDRESS
CITYID(Foreign Key) Referencing to City Model
6. CarDetails:
Field Name Field Type
BRANDID (Foreign Key) Referencing to Brand Model
MODEL_NAME
YEAR
MILEAGE
PRICE
DESCRIPTION
AVAILABLE_FOR DROPDOWN: 1-SELL , 2-RENT
7. RentedCars
Summer Internship(4330001) 21
END_DATE
TOTAL_AMOUNT
BOOKING_STATUS DROPDOWN: 1-CONFIRMED , 2-CANCELLED
AREAID (Foreign Key) Referencing to Area Model
8. SoldCars
PROGRAM :
Summer Internship(4330001) 22
Summer Internship(4330001) 23
OUTPUT:
Summer Internship(4330001) 24
Summer Internship(4330001) 25
Summer Internship(4330001) 26