Python Report

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 19

A MICRO PROJECT REPORT ON

“CREATE AN ENGLISH DICTIONARY”

FOR THE DIPLOMA IN COMPUTER ENGINEERING


SUBMITTED BY
LAKADE VAISHNAVI MANOHAR
KULKARNI MRUNAL MAKARAND
DAUD RENUKA BALASAHEB
UNDER THE GUIDANCE OF

Mr. V N Shahane

DEPARTMENT OF COMPUTER ENGINEERING


CSMSS OF COLLEGE POLTYECHNIC, CHH.
SAMBHAJINAR MAHARASHTRA, INDIA

AND

MAHARASHTRA STATE BOARD OF TECHNICAL


EDUCATION, MUMBAI

ACADEMIC YEAR 2022-23


CERTIFICATE
This is to certify that Following Students of six semester of Diploma in
Computer Engineering of Institute CSMSS College of Polytechnic (code:1152) have
completed the Micro Project satisfactorily in subject Programming with python
(22616 ) for the academic year 2022-23 as prescribed in the curriculum.

Place: Chh. Sambhajinagar

Date:

Sr.no Name of the students Enrollment no.

1 LAKADE VAISHNAVI MANOHAR 2011520088

2 KULKARNI MRUNAL MAKARAND 2011520085

3 DAUD RENUKA BALASAHEB 2011520053

PROJECT GUIDE HEAD OF DEPARTMENT

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.

Sr No. Name of Student Sign

1. LAKADE VAISHNAVI MANOHAR

2. KULKARNI MRUNAL MAKARAND

3. DAUD RENUKA BALASAHEB


•••••••••••••••••••••••••••••••••INDEX••••••••••••••••••••••••••••••••••••

1. MICRO-PROJECTP ROPOSAL ..................................................... 1 -2

2. RATIONALE ......................................................................................... 3

3. AIMS /BENEFITS OF THEMICRO-PROJECT… .............................. 4

4. LITERATURERE VIEW ................................................................. 5-10

5. ACTUAL PROCEDURE FOLLOWED ............................................ 11

6. OUTPUT OF THE MICRO -PROJECT ............................................. 12

7. SKILL DEVELOPED/ LEARNING OUTCOMES


OF MICRO-PROJECT ...................................................................... 13

8. APPLICATIONS OF MICRO PROJECT .........................................14

9. REFERANCE… ................................................................................. 15
1. MICRO–PROJECT PROPOSAL

TITLE: Creating an English dictionary.

1.0 AIMS/BENEFITS OF THE MICROPROJECT

➢ To get the knowledge of dictionary data type in python.

➢ To get information about different dictionary operations.

➢ To get information about list and tuple.


2.0 COURSE OUTCOMES ADDRESSED-
➢ Perform operations on data structure in python.
➢ Develop function for given problem.
3.0 PROPOSED METHODOLOGY:
1. Basic information about different types of data structures in python.

2. Basic information about dictionary in python.

3. Basic information about the dictionary operations.

4.0ACTIONPLANS:

Sr. Details of Activities Planned Planned Name of


No. Start Date Finish Responsible
Date Team
Members
1 Decide subject for micro project. 08/02/2023 14/02/23 All
2 Preparation and submission of 16/02/2023 21/02/23 All
Abstract.
3 Collection of data. 22/02/2023 27/02/23 All
4 Discussion and outline of 01/03/2023 04/03/23 All
Content.
5 Formulation of content. 10/03/2023 16/03/23 All
6 Editing of Content. 05/04/2023 22/04/23 All
7 Final submission of All
02/05/2023 02/05/2023
Micro-Project.

1
5.0 RESOURCE SREQUIRED:

Sr.No Name of Specifications Quantity Remarks


Resource
/Material
1 Computer RAM minimum 1
2GBonwards(i3- i5preferable)

2 Operating System Windows-10 1

3 Google-Chrome (for gather 1


Browser
information)
4 Colab 1
Software

❖ NAMES OF TEAM MEMBER WITH ROLL NO:

Sr.no. Name of Students Roll no

1 DAUD RENUKA BALASAHEB 10

2 KULKARNI MRUNAL MAKARAND 37

3 LAKADE VAISHNAVI MANOHAR 39

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

➢ To get the knowledge of dictionary data type in python.

➢ To get information about different dictionary operations.

➢ To get information about list and tuple.

❖ 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

to learn and provides lots of high-level data structures.

Python is easy to learn yet powerful and versatile scripting language, which makes it attractive

for Application Development.

Python's syntax and dynamic typing with its interpreted nature make it an ideal language for

scripting and rapid application development.

Python supports multiple programming pattern, including object-oriented, imperative, and

functional or procedural programming styles.

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

write a=10 to assign an integer value in an integer variable.

Python makes the development and debugging fast because there is no compilation step

included in Python development, and edit-test-debug cycle is very fast.

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

ABC is a predecessor of Python language.

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

Python is easy to learn as compared to other programming languages. Its syntax is

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

language for beginners

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,

while Java or C takes multiple lines.

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

software for several competing platforms by writing a program only once.

5) Free and Open Source

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

existence. It supports inheritance, polymorphism, and encapsulation, etc. The object-oriented

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

can use that byte code.

8) Large Standard Library

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

framework for Python web development.

9) GUI Programming Support

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

by line like C,C++ Java. It makes easy to debug the code.

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

into our code.

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

the elements of a tuple once they have been assigned.

Features of Python Tuple:

1. Tuples are an immutable data type, which means that once they have been generated, their

elements cannot be changed.

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

separated by a comma. Although it is not necessary to include parentheses, doing so is advised.

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

sequence data formats are Tuples and String.

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

symbol [] and subdivided by commas.

Characteristics of Lists

The list has the following characteristics:

1. The lists are ordered.

2. he element of the list can access by index.

3. The lists are the mutable type.

4. The lists are mutable types.

5. A list can store the number of various elements.

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.

1. Python Dictionary is used to store the data in a key-value pair format.

2. It is the mutable data-structure.

3. The elements Keys and values is employed to create the dictionary.

4. Keys must consist of just one element.

5. Value can be any type such as list, tuple, integer, etc.

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

3.6 and before, dictionaries are generally unordered.

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 (:).

The syntax to define the dictionary is given below.

Syntax:

Dict = {"Name": "Chris", "Age": 20}

Dictionary Methods:

1. clear(): Removes all items from the dictionary


2. copy(): Returns a shallow copy of the dictionary
3. fromkeys(): Creates a dictionary from the given sequence
4. get(): Returns the value for the given key
5. items(): Return the list with all dictionary keys with values
6. keys(): Returns a view object that displays a list of all the keys in the dictionary in order of
insertion
7. pop(): Returns and removes the element with the given key.
8. popitem(): Returns and removes the key-value pair from the dictionary
9. setdefault(): Returns the value of a key if the key is in the dictionary else inserts the key
with a value to the dictionary
10. update(): Updates the dictionary with the elements from another dictionary
11. values(): Returns a list of all the values available in a given dictionary

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

9. Working with team

10. Logic development

11. Error handling

13
8. APPLICATIONS OF MICRO–PROJECT

1) It used to create the English dictionary


2) It can be used to store the words in a dictionary
3) It is used to update the word in a dictionary.
4) It is used to display the words in a dictionary

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

You might also like