Shanvi Report PDF
Shanvi Report PDF
BACHELORS OF TECHNOLOGY
In
DEPARTMENT OF COMPUTER
SCIENCE AND ENGINEERING
By
Shanvi Mishra
2200100130139
to the
FACULTY OF UNITED COLLEGE OF ENGINEERING
AND RESEARCH
DR. APJ ABDUL KALAM TECHNICAL
UNIVERSITY LUCKNOW
1|Page
STUDENT DECLARATION
SHANVI MISHRA
(2200100130139)
DEPARTMENT OF CSE/IT
2|P age
ACKNOWLEGEMENT
“MORE YOU READ THE MORE YOU KNOW, THE MORE YOU KNOW,
THE SMARTER YOU GROW, THE SMARTER YOU GROW, THE
STRONGER YOUR VOICE, THROUGH LEARNED KNOWLEDGE FROM
INSTITUTE AND TEACHERS.”
Learning python and doing project work has been a great experience for me. For
this, I wish to express me sincere gratitude to my all teachers including HOD Dr Vijay
Kumar Dwidedi, Sandeep Mukherjee(C. I) and our python summer training mentor
Shyam Bahadur Sir and other teaching faculty members for their constant support ,
motivation and guidance in the right direction to make this project a dream come
true.
Thanking You,
Yours faithfully,
Shanvi Mishra
Roll no: 2200100130139
3|P age
CONTENTS
1. PREAMBLE
2. FEATURES OF PYTHON
3. HISTORY OF PYTHON
4. APPLICATION OF PYTHON
5. USES OF PYTHON IN DATA ANALYTICS
6.USES OF PYTHON
7. ADVANTAGES OR BENEFITS OF PYTHON
8. LIMITATIONS OR DISADVANATGES OF PYTHON
9. HOW TO USE PYTHON
10. PYTHON 2 VS PYTHON 3
11. GUI IN PYTHON
12. WHY TKINTER
13. PROJECT NAME – GUESSING THE NUMBER USING PYTHON
14. METHODOLOGY
15. VARIABLES USED
16. PYTHON CODE
17. OUTPUT
18. CONCLUSION
19. REFERENCE
4|P age
PREAMBLE
Python is one most popular programming language nowadays, It is also called as Multi
purpose programming language. (as it is not intended to work in a particulararea)
It is high level , general purpose programming language . Its is available across manyplatforms like
– Windows, LINUX, Mac Os.
As it is easy to code and presence of OOPS(Object Oriented Programing) its helpsus
develop and demonstrate applications easily.
It comes with a rich set of built in libraries. Hosting solutions for Python applicationsare also
cheap.It is considered as a ‘scripting’ language, but is much more than that.
Its versatile and easy to code nature helps not only to handle files but alsodevelop
massively trafficked websites for cooperate IT organizations.
Name after ‘Monty Python’, a comedy group, depicting its ‘fun’ philosophy •Open
source and interpreted language.
Python knowledge is on high trending currently.
FEATURES OF PYTHON
• Python focusses on readability, coherence and simplicity.
5|P age
Some of the prominent and significant features of Python are:
Easy to Code
o Its is a developer friendly language .
Object-Oriented Approach
o Python recognizes the concept of class and object encapsulation thus allowing
programs tobe efficient in the long run.
High-Level Language
o when one codes in Python one don’t need to be aware of the coding structure,
architecture as well as memory.
6|P age
HISTORY OF PYTHON
• Designed By -Guido Van Rossum ( occupation – Computer Programmer and Author )
• Developer – Python Software Foundation
• Conceived – Late 1980’s
• First appeared – 1991 (25 years ago)
• Implementation started – Dec 1989
• File extention - .py , .pyc , .pyd , .py.pyz
Official website –www.python.org
APPLICATIONS OF PYTHON
Some the important real world and traditional uses of this highly dynamic language are as follows:
-
Web Development.
Game Development.
Scientific and Numeric Applications.
Artificial Intelligence.
Machine Learning.
Software Development.
Language Development.
• Embedded Scripting.
• Image processing.
• Internet Scripting.
• System Administration.
7|P age
8|P age
USERS OF PYTHON
• YouTube: Originally written in Python and mysql which is a freely available open
source Relational Database Management system (RDBMS).
• Yahoo!: Yahoo acquired Four11, whose address and mapping lookup services are
implementedin Python
• Yahoo! Maps: Uses Python .
• DropBox: A cloud based file hosting service runs on Python .
• Google: Many components of the Google spider and search engine are written in Python
because of its easy coding.
Python 2 or Python 3?
• We are currently using Python 3.5+
• Library support is more for Python 2.7 as it has been around longer .
9|P age
• In integer division it always returns integer like 7/5 (Result = 1)
• Implicit str type ASCII.
• Print without Parenthesis.
• Xrange () exist.
PYTHON 2.X
• In integer division it always returns without using floor like 7/5 (Result=1.4)
10 | P a g
e
GUI IN PYTHON PYTHON
Python has many options for Graphical user interface development. The most popular
amoung them are listed below:-
Tkinter − Tkinter is the Python interface to the Tk GUI toolkit shipped with Python .
wxPython − This is an open-source Python interface for wxWindows .
JPython − JPython is a Python port for Java which gives Python scripts seamless
access to Java class libraries on the local machine
Thus, there are many other interfaces available also.
WHY TKINTER
• TKINTER IS A STANDARD GUI LIBRAUARY
• IT HELPS US QUICKLY CREATE VARIOUS GUI BASED
APPLICATIONS
Python contains a heap of user interface elements. Tkinter is that the solely elements designed by
victimization python libraries itself. Some the necessary feature are:-
• It’s cross-platform, therefore the same code works on Windows, macOS, and Linux.
• Applications inbuilt Tkinter sounds like they run on the inbuilt that platform
itself. AlthoughTkinter is taken into account the de-facto Python user interface
framework, it’s not while not criticism.
11 | P a g e
12 | P a g e
IMPORTANT METHODS IN TKINTER
The most important methods required to make a simple GUI application are:-
1. Tk(): It is used to create a main window. One can also change
the name of the window.
2. mainloop(): There is a method known by the name mainloop() is used
when your application is ready to run. It runs an infinite loop and wait for
the all the tasks to get completed and until wants to exit the window.
13 | P a g e
PROJECT NAME – GUESSING THE NUMBER USING PYTHON
INTRODUCTION
A guessing game is a classic and fun way to engage users and challenge their guessing skills. In this
program we will walk you through the process of creating a simple guessing game using Python.
This game will randomly generate a number, and the user will have to guess the number within a
certain range.
If the guessed number is lower than the randomly selected number, the user will see “too low”. If the
guessed number is higher than the randomly selected number, the user will see “too high”. When the
user guesses the correct number, “you guessed it right!!” will be displayed in the output
Generating a Random Number: The game will randomly generate a number between 1 and 10,
which you will have to guess.
User Interaction: You will be asked to enter your name, making the game more personalized. Then,
you can begin guessing the number.
Feedback Loop: After each guess, the game will provide feedback on whether your guess is too low
or too high. This will guide you in making your subsequent guesses.
Limited Attempts: You will have a maximum of 5 attempts to guess the correct number. Can you
solve the mystery within these attempts?
Victory or Defeat: If you successfully guess the number within the given attempts, you will be
celebrated for your guessing prowess. If not, the game will reveal the correct number.
14 | P a g e
METHODOLOGY
15 | P a g e
VARIABLES USED IN THIS PROJECT
16 | P a g e
PYTHON CODE
20 | P a g e
OUTPUT
28 | P a g e
CONCLUSION
29 | P a g e
REFERENCE
1. https://www.geeksforgeeks.org/number-guessing-game-in-python/
2. https://www.scaler.com/topics/number-guessing-game-python/
3. https://thecleverprogrammer.com/2022/06/29/number-guessing-game-using- /
210 | P a g
e