0% found this document useful (0 votes)
22 views20 pages

Shanvi Report PDF

This report details the summer internship training completed by Shanvi Mishra in Python and Data Science, fulfilling requirements for a Bachelor's degree in Computer Science and Engineering. It covers the features, history, applications, and advantages of Python, along with a project on creating a number guessing game using Tkinter. The report includes acknowledgments, methodology, variables used, Python code, and references.

Uploaded by

Shikhar Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views20 pages

Shanvi Report PDF

This report details the summer internship training completed by Shanvi Mishra in Python and Data Science, fulfilling requirements for a Bachelor's degree in Computer Science and Engineering. It covers the features, history, applications, and advantages of Python, along with a project on creating a number guessing game using Tkinter. The report includes acknowledgments, methodology, variables used, Python code, and references.

Uploaded by

Shikhar Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

SUMMER INTERNSHIP TRAINING

REPORT PYTHON AND PROJECT WORK


A Report is submitted
In Partial Fulfillment of the Requirements
For the Degree of

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

I, Shanvi Mishra, hereby declare that the presented report


oftraining tiled “PYTHON AND DATA SCIENCE”, is
uniquely prepared by me after the completion of 60hrs training
authorized by UNITED
GLOBAL INFOSERVICE.PVT. LTD.

SHANVI MISHRA
(2200100130139)

DEPARTMENT OF CSE/IT

UNITED COLLEGE &ENGINEERING & RESEARCH

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.

• Python code is usually very compact.

• Python code is portable across OS platforms.

• Huge collection of libraries available for use by developers.

5|P age
Some of the prominent and significant features of Python are:
 Easy to Code
o Its is a developer friendly language .

 Open Source and Free


o It means anyone can create and contribute to the python environment.

 Support for GUI


o Supports GUI thus adding visual impact to the code

 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.

• GUI’s • Database Programming.

• Internet Scripting.

• System Administration.

USES OF PYTHON IN DATA ANALYTICS


• Weather Forecasting
• Scientific analysis
• Ad targetting
• Risk Management Analysis

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.

HOW TO USE PYTHON


Interactive mode programming
Invoking the interpreter without passing a script file.
It involves running your codes directly on Python shell which can be evaluate from the
terminal ofthe operating system.
It is suitable for running few lines of codes.

Script mode programming (GUI)


Invoking the interpreter with a script parameter begains execution continues until the
script is finished. When the script is finished, the interpreter is no longer active.
In the script mode programming, we have to create a file, give it a name with the extension .py

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 .

• The future will be going to be Python 3+

• Development and porting of libraries is an ongoing process

• There are several key syntactic changes so advisable to be with 3.5

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)

• Implicit str type is Unicode.

• Print function with parenthesis.

• Xrange() does not exist.

ADVANTAGES OR BENEFITS OF PYTHON


Extensive Support Libraries
• Python provides a wide range of standard libraries that include cables,
Internet, web application tools, operating system connectors and agreements.
Integration factor
• Integrates Enterprise Application Integration makes it easy to develop Web services.

Improved Production System


• Python Language has comprehensive support libraries and clean-focused
projects that increase the productivity of the program twice or ten times while
using languages such as Java, VB, Perl, C, C
++, SQL and C #.
Production
• With its strong process integration features and enhanced control
capabilities that contribute to addressing the increased speed of multiple
applications and the productivity of applications.

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.

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

 The game window is created by importing various libraries from tkinter.


 The window is titled "Guess The Number Game" and is of size
(400x200) and contains an input box and a button (Guess)
 As soon as the user inputs a number (Range: 1 to 10) and clicks the
'Guess' button, the check guess() function is called.
 The check guess() function fetches the user input from the input box and
stores in a variable "guess".
 It then checks the input number with the generated random number and
generates the following outputs in a message box based on the condition
satisfied.
 Too low", if the input number is less than the random number.
 "Too high", if the input number is greater than the random number.
 "You guessed it right", if the input number matches the random number.
 The process continues till the number of attempts reaches 0 or the right
number is gussed and accordingly the "victory" or "defeat" message is
displayed. The correct number is also displayed if the user is defeated.

15 | P a g e
VARIABLES USED IN THIS PROJECT

• Variable represents a memory location where we can place any value.

• Python is a dynamic typed programming language. Here we don’t


need to declare the variable before its use, also no need to define the
type of variable.

• Variables name should always be meaningful.

• They should always begin with an alphabet or underscore.

• Below are the variables used in the project.

16 | P a g e
PYTHON CODE

20 | P a g e
OUTPUT

28 | P a g e
CONCLUSION

• So to conclude this project has been prepared by using


Tkinter inwhich we showed implementation of various
tkinter components.
• This Project is related to Guessing the number
• This Project is example of random integer generation.
.

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

You might also like