Report On Python
Report On Python
INTRODUCTION
Python is a popular programming language. It was created by Guido van Rossum, and
released in 1991. It is used for:
Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.)
Python has a simple syntax similar to the English language.
Python has syntax that allows developers to write programs with fewer lines than
some other programming languages.
Python runs on an interpreter system, meaning that code can be executed as soon as it
is written. This means that prototyping can be very quick.
Python can be treated in a procedural way, an object-orientated way or a functional
way.
1
2. PYTHON HISTORY AND VERSIONS
The implementation of Python was started in the December 1989 by Guido Van Rossum at
CWI in Netherland.
In February 1991, van Rossum published the code (labeled version 0.9.0) to alt.sources.
In 1994, Python 1.0 was released with new features like: lambda, map, filter, and reduce.
Python 2.0 added new features like: list comprehensions, garbage collection system.
On December 3, 2008, Python 3.0 (also called "Py3K") was released. It was designed to
rectify fundamental flaw of the language.
ABC programming language is said to be the predecessor of Python language which was
capable of Exception Handling and interfacing with Amoeba Operating System.
ABC language.
Modula-3
2
3. FEATURES OF PYTHON
There are many features in Python, some of which are discussed below –
3
3.7 PYTHON IS INTEGRATED LANGUAGE
Python is also an Integrated language because we can easily integrated python with other
language like C, C++ etc.
4
4. COMPANY PROFILE
The Diesel Locomotive Works (DLW) in Varanasi, India, is a production unit owned by
Indian Railways. It manufactures diesel-electric locomotives and its spare parts. It is the
largest diesel-electric locomotive manufacturer in India. It is located on DLW to BHU road
of the metropolitan city of Varanasi.
Website - https://dlw.indianrailways.gov.in/
Annual production- 125 Locomotive
Total number of Staff -5947
Workshop land area- 89 hectares
Electrical power requirement-3468KVA
Electrical energy consumption-19.8 Million
Company
It was established in 1961. It rolled out first its locomotive on 3 January 1964, after three
years. The name of its first locomotive was KUNDAN. It manufactures locomotives which
are variants based on the original ALCO designs dating to the 1960s and the GM EMD
designs of the 1990s.DLW has an annual production capacity of 250 locomotives and plans
to increase it to 275 based on the current demand. Since inception, DLW has produced total
8099 locomotives (up to 31 January 2018) of various types. DLW now manufactures "More
than one locomotive a day". DLW manufactured 334 diesel-electric locomotives in last
financial year 2016-17, which is the highest ever loco production by any loco manufacturing
unit in India and bagged the "Best Production Unit Shield" for the second successive year.
Products
DLW locomotives have power outputs ranging from 2,600 horsepower (1,900 kW) to 5,500
horsepower (4,100 kW). Currently DLW is producing EMD GT46MAC and EMD
GT46PAC locomotives under license from Electro-Motive Diesels (formerly GM-EMD) for
Indian Railways. Some of its EMD locomotive products are WDP4, WDP4D, WDG4D,
5
WDGS and others as of June 2015. DLW recently started producing HEP capable WAP-7
high horsepower Electric Locomotives. Recently, it has been allotted to Santragachi &
Tughlakabad Loco Shed. It will also produce WDG4G (ES43ACmi, Customized for IR)
Locomotives from General-Electric Transportation.
Market
Besides the Indian Railways, it regularly exports diesel-electric locomotives and has supplied
locomotives to other countries such as Sri Lanka, Nepal, Bangladesh, Mali, Senegal, Sudan
Tanzania, Angola, and Vietnam and also to a few users within India, such as ports, large
power and steel plants and private railways.
Ancillary
In July 2006, DLW outsourced manufacture of some passenger and freight locomotives to
Parel Workshop, Central Railway and Mumbai.
The Diesel Locomotive Works, a production unit of Indian Railways converted the diesel
loco into electric loco with indigenous technology under “Make In India” initiative. The work
on this project was started on December 22, 2017 and the locomotive was successfully rolled
out on February 28, 2018.
Parts of rail engine are made here and get distributed all over the country. Previously, they
only manufacture diesel engine but now they also manufacture electric engine.
➢ KUNDAN
First successful loco engine made by DLW.
➢ BHARTIYA
One of the heaviest Engines. Its number is 6073 YDM.
6
FACILITIES
DLW has its own cinema hall, cricket ground, playground, Bal Udyan DLW campus, DLW
Golf Course, DLW swimming pool, DLW officer’s club, DLW cinema hall, DLW residence,
DLW power station, DLW canteen, DLW officer’s rest house and St. John’s School DLW. It
provides great accommodation facilities to their employees. Based on the rank of the
employee they provide quarters and bungalow to the officer.
7
5. ABOUT THE VIRTUAL ASSISTANT PROJECT
The basic idea behind this project is to create a simple stand-alone application
that helps less tech savvy people in the world to use the computer without feeling ignorant or
computer illiterate. Computers have become a very important devices and as well as less
expensive over time. The application works same like Siri / Google Assistant etc. But the
application deals with the computer itself mainly. The U.I of the application is self-
explanatory and minimal.
5.1.2 Greeting- This Project will greet you whenever it will open.
5.1.3 Date and Time- It will provide current date and time whenever required.
5.1.4 OS Management- This project can also manage some operating system works like
opening any folder or any application in the system.
5.1.5 Web Browser search- This project can easily search anything on the internet.
5.1.6 Location/Map- This project can also provide location of any place.
5.1.7 Query Online on Google- You can ask anything and the project will give its answer
with the help of Google.
5.1.8 Access Wikipedia-It can access the Wikipedia and give you some important
information as required.
5.1.9 Play Music- This project can play music to enhance your mood.
5.1.10 Open Application- This is one of the main features of the project that it can open any
application present in the system as required.
5.1.11 Open File/Folder-It can also open any specific file/folder as required.
8
5.2 USE CASE DIAGRAM
A use case is a set of scenarios that describe an interaction between a user and a system. A
use case diagram displays the relationship among actors and use cases. The two main
components of a use case diagram are use cases and actors.
Ask For
open
Conversatio Application
n
Ask For
open Folder
Place
Location
(Map)
9
5.3 ACTIVITY DIAGRAM
It is basically a flowchart to represent the flow from one activity to another activity. The
activity can be described as an operation of the system. The control flow is drawn from one
operation to another. This flow can be sequential, branched, or concurrent. Activity diagrams
deal with all type of flow control by using different elements such as fork, join, etc.
10
5.4 REQUIREMENTS
11
5.5 CONTEXT DIAGRAM (ZERO LEVEL DFD)
12
5.6 DATA FLOW DIAGRAM (LEVEL 1)
Data Flow Diagram shows the flow of the data between the entities and the processes.
Virtual
Assistant
OS Conversio
Wikipedia
Managem n
API
ent
13
5.7 ENTITY-RELATIONSHIP DIAGRAM
Here user and the virtual assistant are the entities and both has their attributes.
Voice Quarry on
Command command
Virtual Assistant
User Has
Fig.5.5. E– R Diagram
14
5.8 CODING
import subprocess
import random
import wikipedia
import re
import wolframalpha
import sys
#import run_lookup
#import lookup_drive_change
import vlc
import webbrowser
import smtplib
import datetime
import requests
import pyttsx3
15
engine=pyttsx3.init()
voices=engine.getProperty('voices')
pyttsx3.voice.Voice.age=5
# print(voice.id)
engine.setProperty('voice','HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voi
ces\Tokens\TTS_MS_EN-US_DAVID_11.0')
#`engine.runAndWait()
def talkToMe(audio):
engine.say(audio)
engine.runAndWait()
print(audio)
# text_to_speech.save('audio.mp3')
# os.system('mpg123 audio.mp3')
def greetme():
16
talkToMe('good morning')
talkToMe('good afternoon')
greetme()
def Command():
r = sr.Recognizer()
17
5.9 PROJECT SCREENSHOTS
18
Fig.5.8. Output Screenshot
19
6. REFRENCES
[1] https://www.google.com/
[2] https://www.youtube.com/
[3] https://www.wikipedia.org/
[4] https://www.slideshare.net/
[5] https://www.w3schools.com/
[6] https://www.tutorialspoint.com/
[7] https://www.javatpoint.com/
20