Bakery Management
Bakery Management
A PROECT REPORT ON
SESSION 2023-24
SUBMITTED BY:
CLASS :
ROLL NO :
SUBECT :
CODE :
1|Page
CERTIFICATE
conducted by CBSE.
______________ _____________
_____________________
2|Page
SL.NO DESCRIPTION PAGE NO.
1 Acknowledgements 4
2 Declaration 5
3 Aim 6
4 Introduction 7
5 Coding 14
6 Output 22
INDEX
3|Page
ACKNOWLEDGEMENT
NAME-
ROLL NO-
4|Page
DECLARATION
5|Page
AIM
6|Page
Introduction
ABOUT PYTHON
Python is a high level, object-oriented programming language. It was developed in
1991 by Guido Van Rossum. Its syntax is similar to the English Language and that
is why it enhances code readability. It uses indentation for defining scopes of
loops if-else construct, class, etc.
7|Page
Python is used to create stand-alone applications.
Learning……….
Actually, the list can go on and on. This defines the power of Python as a
programming language. Hence it becomes very important to learn how to write to
a file using python and then read from the same file.
Often, programmers fall in love with Python because of the increased productivity
it provides. Since there is no compilation step, the edit-test-debug cycle is
incredibly fast. Debugging Python programs is easy: a bug or bad input will never
cause a segmentation fault. Instead, when the interpreter discovers an error, it
8|Page
raises an exception. When the program doesn't catch the exception, the
interpreter prints a stack trace. A source level debugger allows inspection of local
and global variables, evaluation of arbitrary expressions, setting breakpoints,
stepping through the code a line at a time, and so on.
The debugger is written in Python itself, testifying to Python's introspective
power.
On the other hand, often the quickest way to debug a program is to add a few
print statements to the source: the fast edit-test debug cycle makes this simple
approach very effective.
A recent survey established the Python language to be the fifth most popular,
behind JavaScript, SQL, Java, and C#. According to the 2017 Stack Overflow
survey, nearly 32% of developers use it, and a further 20% want to do so. The
usage is up from 22% reported in the first Stack Overflow survey, which ran in
2013.
The survey also reports Python to be the sixth most loved language (behind Rust,
Smalltalk, TypeScript, Swift, and Go), and I think it’s interesting to note that
Python is the top language that is both used and loved.
(the other languages that are loved are mostly aspirational, for example,
TypeScript is used by just 9.5% of people, while Rust and Smalltalk aren’t even on
the scale).
There are more than 147,000 packages in the package repository (colloquially
known as the Cheese Shop), which are what make it so versatile, and so popular.
You can use Python for everything from web development, to data science and
9|Page
data visualisation, to games development, and DevOps without having to start at
ground zero and implement your own code for everything.
If you are working in a large software application where they process a large
number of data, then we cannot expect those data to be stored in a variable as
the variables are volatile in nature.
Hence when are you about to handle such situations, the role of files will come
into the picture.
Python too supports file handling and allows users to handle files i.e., to read and
write files, along with many other file handling options, to operate on files. The
concept of file handling has stretched over various other languages, but the
implementation is either complicated or lengthy, but alike other concepts of
Python, this concept here is also easy and short. Python treats file differently as
10 | P a g e
text or binary and this is important. Each line of code includes a sequence of
characters and they form text file. Each line of a file is terminated with a special
character, called the EOL or End of Line characters like comma {,} or newline
character. It ends the current line and tells the interpreter a new one has begun.
Let’s start with Reading and Writing files.
One must keep in mind that the mode argument is not mandatory. If not passed,
then Python will assume it to be “r” by default.
There are also various other functions that help to manipulate the files and its
contents. One can explore various other functions in Python Docs.
11 | P a g e
ABOUT MODULES
We use modules to break down large programs into small manageable and
organized files. Furthermore, modules provide reusability of code. We can define
our most used functions in a module and import it, instead of copying their
definitions into different programs. We can import the definitions inside a module
to another module or the interactive interpreter in Python.
1. Division of development
2. Increases readability of program
3. Programming errors can easily be detected
4. Allows reuse of code
12 | P a g e
5. Improves manageability
6. Collaboration in projects made efficient and easy.
13 | P a g e
CODING
14 | P a g e
15 | P a g e
16 | P a g e
17 | P a g e
18 | P a g e
19 | P a g e
20 | P a g e
21 | P a g e
Sql table
22 | P a g e
Output
23 | P a g e
24 | P a g e
25 | P a g e
26 | P a g e
27 | P a g e
28 | P a g e
HARDWARE AND SOFTWARE REQUIREMENTS
X. Printer : required
SOFTWARE REQUIREMENTS:
I. Windows OS
II. Python
29 | P a g e
BIBLIOGRAPHY
1.WWW.SCRIBD.COM
2.WWW.WIKIPEDIA.COM
3.WWW.GOOGLE.COM
4.CLASS 12 NCERT BOOK BY SUMITA ARORA
30 | P a g e