APURVA D BHATT
GUJARATTECHNOLOGICALUNIVERSITY
Academicyear
(2022-2023)
N.G.PATEL POLYTECHNIC
INTERNSHIP REPORT
UNDERSUBJECTOF
SUMMERINTERNSHIP(3170001)
D.E.SEMESTER-III
BRANCH:- ComputerScience and Engineering
Submitted by :-
APURVA DHIRENDRA BHATT
BrainyBeamTechnologiesPvt.Ltd.
Prof. RAJESH J PATEL Mr.SAGAR JASANI
(Internal Guide) (External Guide)
APURVA D BHATT
CompanyProfile
CompanyName: BrainyBeamTechnologiesPvtLtd
Address: 118,SukanMall,Sciencecityroad,Ahmedabad
ContactNo: +919033237336
EmailId: [email protected]
Website: www.brainybeam.com
About Us
AtBrainyBeam,weseeInnovationasacleardifferentiator.Innovation,alongwithfocusondeep,lon
g-lastingclientrelationshipsandstrongdomainexpertise,driveseveryfacetofourday-to-
dayoperations.
BrainyBeam Technologies was founded with a vision to address growing businesses' needs
ofreducingthetimetomarketandcosteffectivenessrequiredtodevelopandmaintainuniqueandc
ustomized web and mobile solutions. We are uniquely and strategically positioned to
partnerwithstartupsandleadingbrandstohelpthemexpandtheirbusinessandofferthemosteffe
ctiveand cost-efficientsolutionsthatproviderevenuesandvaluetotheirbusiness needs.
Vision
TobecomethemosttrustedandpreferredoffshoreITsolutionspartnerforStartups,SMBsandEnte
rprises through innovation and technology leadership. Understanding your ambitiousvision,
honing in on its essence, creating a design strategy, and knowing how to technicallyexecute
it is what we do best. Our promise? The integrity of your vision will be maintained andwe'll
enhance it to best reach your target customers. With our primary focus on creatingamazing
user experiences, we'll help you understand the tradeoffs, prioritize features,
anddistillvaluablefunctionality.It'sanart formwecareabout gettingright.
APURVA D BHATT
JoiningLetter
APURVA D BHATT
CompletionCertificate
ACKNOWLEDGEMENT
Iwould liketo expressmydeepestgratitude to allthose who provided
methepossibilitytothe completion of the internship. A special gratitude of
thanks I give to our AssitantProfessor, Prof. Shweta Rajput, whose
contribution in stimulating suggestions andencouragement,helpedme to
coordinate theinternship especiallyin draftingthis report.
Furthermore, I would also like to acknowledge with much appreciation the
crucial role of theHead of Department, Dr. Avani Vasant, who gave the
permission to use all requiredequipment and the necessary material to fulfil the
task. Last but not the least, many thanks goto the teachers and my friends and
families who have invested their full effort in guiding us inachievingthegoal.
Also I appreciate the guidance given by the developer at BrainyBeam, Mr Raj
as well as thepanels especially for the internship that has advised me and gave
guidance at every momentofthe internship.
1|Page
ABSTRACT
This web application will be designed for the venders who need to integrate the
inventory as well as product and sells in a single platform. This application is
able to manage product, sells as well as inventory.
2|Page
|||DAY –1
What is python ?
• Python is a computer programming language .
• Python is general purpose language.
• Python is high level programming language.
• Python is object oriented programming language.
What can python do ?
• Create web site
• Create software
• Connect to database system. It can also read and modify
• Handle big data
• Used for data visualization
• Create web application
Popular Websites Built Using Python
• Instagram currently features the world’s largest deployment of the Django web
framework, which is written entirely in Python.
• Spotify: Around 80% of these services are written in Python.
• Netflix have the freedom to choose the technologies best suited for the job.
developers turn to Python due to its rich batteries-included standard library,
succinct and clean yet expressive syntax, large developer community, and the
wealth of third party libraries one can tap into to solve a given problem.
• Uber
• Dropbox
• Pinterest
• Instacart
• Reddit
Why python ?
• Work on different platform
• Has simple syntax to English language
• Has syntax that allows developer to write programs with fewer line than some other
programs
• Python runs on an interpreter system, meaning that code can be executed as soon as
it is written.
• open source
3|Page
Features of python
1. Easy to Code
2. Easy to Read
3. Free and Open-Source
4. Robust Standard Library
5. Interpreted
6. Portable
7. Object-Oriented and Procedure-Oriented
8. Extensible
9. Expressive
10. Support for GUI
11. Dynamically Typed
12. High-level Language
13. Simplify Complex Software Development
PYTHON PROGRAM – 1
Code and Output
4|Page
|||DAY –2 SUNDAY
|||DAY –3
What is Python Operators ?
• Operators are used to perform operations on variables and values.
• In the example below, we use the + operator to add together two values:
Example :-
print (10 + 5)
Python divides the operators in the following groups:
o Arithmetic operators
o Assignment operators
o Comparison operators
o Logical operators
o Identity operators
o Membership operators
o Bitwise operators
o
5|Page
Logical operators
6|Page
Identity operators
Membership operators
Bitwise Operators
7|Page
|||DAY –4
Python Flow Control
If Statement
o An "if statement" is written by using the if keyword.
OUTPUT AND CODE :-
Elif Statement
The elif keyword is pythons way of saying "if the previous conditions were not
true, then try this condition".
OUTPUT AND CODE :-
8|Page
Else Statement
The else keyword catches anything which isn't caught by the preceding
conditions.
OUTPUT AND CODE :-
Nested If statement
• You can have if statement inside if statement ,this is called nested if statement.
OUTPUT AND CODE :-
Odd and even number program
OUTPUT AND CODE :-
9|Page
|||DAY –5
Calculator Demo
OUTPUT AND CODE :-
Pattern programs :-
Pattern 1 :-
10|Page
Pattern 2 :-
Pattern 3 :-
11|Page
Pattern 4 :-
Pattern 5 :-
12|Page
|||DAY –6
Pattern 6 :-
Pattern 7 :-
13|Page
Pattern 8 :-
Pattern 9 :-
14|Page
|||DAY –7
Category Task
OUTPUT AND CODE :-
Try and Except
OUTPUT AND CODE :-
15|Page
Lists
Code :-
value= ["A","B","C","D","E","F"]
value1= ["X","Y","Z"]
foriinvalue:
print(i)
print(value[2])
value.extend(value1)
print(value)
value.extend("Python")
print(value)
value.append(123)
print(value)
value.pop(6)
print(value)
print(value[3:])
print(value[2:10])
print(value[2:10:3])
print(value[-1])
print(value[-5:-1])
value.reverse()
print(value)
value.clear()
print(value)
# del value
# print(value)
16|Page
message="#Hello Everyone, Good Afternoon. How Are You?#"
print(message.strip("#"))
print(message.lstrip("#"))
print(message.rstrip("#"))
print(message.replace("Afternoon","Evening"))
Output :-
17|Page
|||DAY –8
File Write Demo
OUTPUT AND CODE :-
File Read Demo
OUTPUT AND CODE :-
>>>f = open("test.txt",'r',encoding = 'utf-8')
>>>f.read(4) # read the first 4 data
'This'
>>>f.read(4) # read the next 4 data
' is '
>>>f.read() # read in the rest till end of file
'my first file\nThis file\ncontains three lines\n'
>>>f.read() # further reading returns empty sting
This is my first file
This file
contains three lines
18|Page
Function Demo
OUTPUT AND CODE :-
19|Page
|||DAY –9 SUNDAY
|||DAY –10
What is a function in Python?
• In Python, a function is a group of related statements that performs a
specific task.
• Functions help break our program into smaller and modular chunks. As
our program grows larger and larger, functions make it more organized
and manageable.
• Furthermore, it avoids repetition and makes the code reusable.
A function definition that consists of the following components
1. Keyword DEF that marks the start of the function header.
2. A function name to uniquely identify the function. Function naming
follows the same Rules of writing identifiers in python.
3. Parameters (arguments) through which we pass values to a function.
They are optional.
4. A colon (:) to mark the end of the function header.
5. Optional documentation string (docstring) to describe what the function
does.
6. One or more valid python statements that make up the function body.
Statements must have the same indentation level (usually 4 spaces).
7. An optional return statement to return a value from the function
• Python Default Arguments
def data(name, msg="Good morning!"):
print("Hello", name + ', ' + msg)
data(“rahul")
data(“yaami", "How do you do?")
• Python Arbitrary Arguments
def data(*names):
# names is a tuple with arguments
for name in names:
20|Page
print("Hello", name)
Python Recursion
o Recursion is the process of defining something in terms of itself.
o In Python, we know that a function can call other functions. It is
even possible for the function to call itself. These types of construct
are termed as recursive functions.
Lambda
In Python, an anonymous function is a function that is defined without a
name
Example of a Lamda function
def factorial(x):
if x == 1:
return 1
else:
return (x * factorial(x-1))
num = 3
print("The factorial of", num, "is", factorial(num))
Install the Django code
Installation instructions are slightly different depending on whether you’re
installing a distribution-specific package, downloading the latest official
release, or fetching the latest development version.
21|Page
Installing an official release of Django with pip
This is the recommended way to install Django.
1. Install pip. The easiest is to use the standalone pip installer. If your
distribution already has pip installed, you might need to update it if it’s
outdated. If it’s outdated, you’ll know because installation won’t work.
2. Take a look at venv. This tool provides isolated Python environments,
which are more practical than installing packages systemwide. It also
allows installing packages without administrator privileges.
The contributing tutorial walks through how to create a virtual
environment.
3. After you’ve created and activated a virtual environment, enter the
command:
4. $ python -m pip install Django
Started creating Website :-
Starting project by using command as follow:-
1. django-admin startproject PROJECT_NAME
Creating Sperusesr as Admin
1. python manage.py createsuperuser
Database Migration
1. Python manage.py makemmigrations
2. Python manage.py migrate
22|Page
|||DAY –11
Creating basic userapp and productapp website
UserApp Contains
1. Login
2. Signup
Code- For Login and signup form
23|Page
Output :- Further code will be added to this
24|Page
ProductApp Contains
1. Home
2. Product
Code for home and product page :-
Output :- Further code will be added to this
25|Page
26|Page
|||DAY –12
Adding features to UserApp
Code :-
27|Page
Output:-
28|Page
Adding features to ProductApp
Code :-
29|Page
Output:-
30|Page
|||DAY –13
Creating CategoryModules and ProductModules
Code :-
31|Page
Output :-
32|Page
Editing home page
Code :-
33|Page
|||DAY –14
Finalizing the project
Signup Page
Sign in Page
34|Page
Home Page
Product Page
35|Page
Logout page
Admin Page
36|Page