Training Report on Python Programming
Training Report on Python Programming
Project
Bachelor of Technology
In
Information Technology
By
Vishal Gupta (Roll no. 2007350130064)
1.1 PYTHON
1.4 History
Python was conceived in the late 1980s, and its implementation was started in
December 1989 by Guido van Rossum at CWI in the Netherlands as a successor to
the ABC language (itself inspired by SETL) capable of exception handling and
interfacing with the Amoeba operating system. Van Rossum is Python's principal
author, and his continuing central role in deciding the direction of Python is
reflected in the title given to him by the Python community, benevolent dictator
for life (BDFL).
“Python is an experiment in how much freedom programmers need. Too much freedom and
nobody can read another's code; too little and expressiveness is endangered.” - Guido van
Rossum
Over six years ago, in December 1989, I was looking for a "hobby" programming
project that would keep me occupied during the week around Christmas. My office
... would be closed, but I had a home Computer, and not much else on my hands. I
decided to write an interpreter for the new scripting language I had been thinking
about lately: a descendant of ABC that would appeal to Unix/C hackers. I chose
Python as a working title for the project, being in a slightly irreverent mood (and a
big fan of Monty Python's Flying Circus).
Science
- Bioinformatics
System Administration
-Unix
-Web logic
-Web sphere
-CGI
Testing scripts
3. Internet Scripting
4. Component Integration
5. Database Programming
Companies like Google makes extensive use of Python in its web search system,
employs. Python’s creator. Intel, Cisco, Hewlett-Packard, Seagate, Qualcomm, and
IBM use Python. For hardware testing. ESRI uses Python as an end-user
customization tool for its popular GI mapping products. The YouTube video
sharing service is largely written in Python.
a) Python is object-oriented.
c) Indentation is one of the greatest future in Python. It's free (open source).
Password Generator
It is a tool that generates passwords based on the given guidelines that you set
to create an unpredictable strong password for your accounts.
The Password generator tool creates a random and customized password for
users that helps them to create a strong password which provides greater
security.
Project Prerequisites
To build this project we will use the basic concept of python and libraries –
Tkinter, random, string.
• Tkinter is a standard GUI library and is one of the easiest ways to build
a GUI application.
• The random module can generate random numbers
• string module contains a number of functions to process the standard
python string.
To install the libraries we can use pip installer from the command line:
:
Project File Structure
Let’s check the step to build a Password Generator using Python
1 Import modules
2 Initialized Window
3 Select Password Length
4 Define Functions
import pyperclip
2. Initialize Window
root = Tk()
root.geometry("400x400")
root.resizable(0,0)
Label() widget use to display one or more than one line of text that users
can’t able to modify.
Spinbox() widget is used to select from a fixed number of values. Here the
value from 8 to 32.
The second loop will generate a random string of length entered by the user –
4 and add to the password variable. Here we minus 4 to the length of the user
because we already generate the string of length 4.
We have done this because we want a password which must contain an
uppercase, a lowercase, a digit, and a special symbol.
Summary
With these steps, we have successfully created a random password generator
project using python. We used popular tkinter library to rendering graphics in
our display window and we also learned about pyperclip and random library.
We learned how to create buttons, input textfield, labels, and spinbox. In this
way, we successfully created our password generator python project. Hope you
enjoyed it.