Python Report
Python Report
Mr. V N Shahane
AND
Date:
PRINCIPAL
ACKNOWLEDGEMENT
We would like to express our thanks to the people who have helped us most throughout
our project. We would like to express our sincere thanks to the principal of CSMSS College of
Polytechnic Dr. G B Dongre for being always with us as a motivator. We are thankful to the
H.O.D of Computer Engineering Department Ms. R S Pophale for her kind support. We are
grateful to our Project Guide Mr. V N Shahane for his nonstop support and continuous
motivation for the project. His help made us possible to complete our project with all accurate
information. A special thanks of our goes to our friends who helped us in completing the project,
where they all exchanged their own interesting ideas. We wish to thanks our parents for their
personal support or attention who inspired us to go our own way. Finally, we would like to
thank God who made all things possible for us till the end.
2. RATIONALE ......................................................................................... 3
9. REFERANCE… ................................................................................. 15
1. MICRO–PROJECT PROPOSAL
4.0ACTIONPLANS:
1
5.0 RESOURCE SREQUIRED:
Approved by,
Mr. V N Shahane
2
2. RATIONAL
Python is powerful programming language. It has efficient high-level data structures and a
simple but effective approach to object-oriented programming Python code is simple, short,
readable, intuitive, and powerful, and thus it is effective for introducing computing and
problem solving to beginners. It's elegant syntax and dynamic typing, together with its
interpreted nature, make it an ideal language for scripting and rapid application development
in many areas on most platforms.
3
3.AIMS/BENEFITS OF THE MICROPROJECT
❖ Micro-Project aims at
❖ Benefits of project:
➢ We learn about data structures in python.
➢ We learn about different operations on the dictionary.
4
4. LITERATURE REVIEW
Introduction to Python:
Python is a general purpose, dynamic, high-level, and interpreted programming language. It
supports Object Oriented programming approach to develop applications. It is simple and easy
Python is easy to learn yet powerful and versatile scripting language, which makes it attractive
Python's syntax and dynamic typing with its interpreted nature make it an ideal language for
Python is not intended to work in a particular area, such as web programming. That is why it
is known as multipurpose programming language because it can be used with web, enterprise,
3D CAD, etc.
We don't need to use data types to declare variable because it is dynamically typed so we can
Python makes the development and debugging fast because there is no compilation step
Python was invented by Guido van Rossum in 1991 at CWI in Netherland. The idea of Python
programming language has taken from the ABC programming language or we can say that
There is also a fact behind the choosing name Python. Guido van Rossum was a fan of the
popular BBC comedy show of that time, "Monty Python's Flying Circus". So he decided to
pick the name Python for his newly created programming language.
5
Python Features:
1) Easy to Learn and Use
straightforward and much the same as the English language. There is no use of the semicolon
or curly-bracket, the indentation defines the code block. It is the recommended programming
2) Expressive Language
Python can perform complex tasks using a few lines of code. A simple example, the hello
world program you simply type print("Hello World"). It will take only one line to execute,
3) Interpreted Language
Python is an interpreted language; it means the Python program is executed one line at a time.
The advantage of being interpreted language, it makes debugging easy and portable.
4) Cross-platform Language
Python can run equally on different platforms such as Windows, Linux, UNIX, and Macintosh,
etc. So, we can say that Python is a portable language. It enables programmers to develop the
Python is freely available for everyone. It is freely available on its official website
www.python.org. It has a large community across the world that is dedicatedly working
towards make new python modules and functions. Anyone can contribute to the Python
community. The open-source means, "Anyone can download its source code without paying
any penny."
6
6) Object-Oriented Language
Python supports object-oriented language and concepts of classes and objects come into
procedure helps to programmer to write reusable code and develop applications in less code.
7) Extensible
It implies that other languages such as C/C++ can be used to compile the code and thus it can
be used further in our Python code. It converts the program into byte code, and any platform
It provides a vast range of libraries for the various fields such as machine learning, web
developer, and also for the scripting. There are various machine learning libraries, such as
Tensor flow, Pandas, Numpy, Keras, and Pytorch, etc. Django, flask, pyramids are the popular
Graphical User Interface is used for the developing Desktop application. PyQT5, Tkinter, Kivy
are the libraries which are used for developing the web application.
10) Integrated
It can be easily integrated with languages like C, C++, and JAVA, etc. Python runs code line
11. Embeddable
The code of the other programming language can use in the Python source code. We can use
Python source code in another programming language as well. It can embed other language
7
12. Dynamic Memory Allocation
In Python, we don't need to specify the data-type of the variable. When we assign some value
to the variable, it automatically allocates the memory to the variable at run time. Suppose we
are assigned integer value 15 to x, then we don't need to write int x = 15. Just write x = 15.
Python Tuples
A Python Tuple is a group of items that are separated by commas. The indexing, nested objects,
and repetitions of a tuple are somewhat like those of a list, however unlike a list, a tuple is
immutable.
The distinction between the two is that while we can edit the contents of a list, we cannot alter
1. Tuples are an immutable data type, which means that once they have been generated, their
2. Since tuples are ordered sequences, each element has a specific order that will never
change.
Creating of Tuple:
To create a tuple, all the objects (or "elements") must be enclosed in parenthesis (), each one
Python List:
A list in Python is used to store the sequence of various types of data. A list can be defined as
a collection of values or items of different types. Python lists are mutable type which implies
that we may modify its element after it has been formed. The items in the list are separated
with the comma (,) and enclosed with the square brackets [].
8
Although Python has six data types that may hold sequences, the list is the most popular and
dependable form. The collection of data is stored in a list, a sequence data type. Similar
Python lists are identical to dynamically scaled arrays that are specified in other languages,
such as Java's ArrayList and C++'s vector. A list is a group of items that are denoted by the
Characteristics of Lists
Python Dictionary
An effective data structure for storing data in Python is dictionaries, in which can simulate the
real-life data arrangement where some specific value exists for some particular key.
In other words, we can say that a dictionary is the collection of key-value pairs where the value
can be of any Python object. In contrast, the keys are the immutable Python object, i.e.,
9
Numbers, string, or tuple. Dictionary entries are ordered as of Python version 3.7. In Python
The simplest approach to create a Python dictionary is by using curly brackets {}, but there
are other methods as well. The dictionary can be created by using multiple key-value pairs
enclosed with the curly brackets {}, and each key is separated from its value by the colon (:).
Syntax:
Dictionary Methods:
10
5. ACTUAL PROCEDURE FOLLOWED
dictionary = {}
while True:
print("\n*** english dictionary ***")
print("1. add word and definition")
print("2. delete word and definition")
print("3. update word or definition")
print("4. print list of words and definitions")
print("5. exit")
choice = input("enter your choice (1-5): ")
if choice == "1":
word = input("enter a word: ")
definition = input(f"enter the definition of '{word}': ")
dictionary[word] = definition
print(f"'{word}' added to dictionary with definition: '{definition}'")
elif choice == "2":
word = input("enter a word to delete: ")
if word in dictionary:
del dictionary[word]
print(f"'{word}' and its definition deleted from dictionary.")
else:
print(f"\nsorry, '{word}' not found in dictionary.")
elif choice == "3":
word = input("enter a word to update: ")
if word in dictionary:
definition = input(f"enter the new definition of '{word}': ")
dictionary[word] = definition
print(f"'{word}' definition updated to '{definition}'.")
else:
print(f"\nsorry, '{word}' not found in dictionary.")
elif choice == "4":
print("\nlist of words and definitions:")
for word, definition in dictionary.items():
print(f"{word.capitalize()}: {definition}")
elif choice == "5":
print("\n exiting english dictionary...")
break
else:
print("\n invalid choice. please enter a number between 1-5.")
11
6. OUTPUTS OF PROJECT
Fig: (Screenshot 1)
Fig: (Screenshot 2)
12
7. SKILL DEVELOPED / LEARNING OUTCOMES OF MICRO PROJECT:
1. Communication
2. Leadership
3. Team management
4. Negotiation
5. Personal organization
6. Risk management
7. Critical thinking
8. Task management
13
8. APPLICATIONS OF MICRO–PROJECT
14
9. References
1. https://www.javatpoint.com/python-tutorial
2. https://www.javatpoint.com/python-features
3. https://www.w3schools.com/python/python_ref_dictionary.asp
15