Industrial Training Report
Industrial Training Report
Industrial Training Report
At
THE DEGREE OF
BACHELOR OF ENGINEERING
JUNE-JULY 2021
SUBMITTED BY:
Certificate by Company/Industry/Institute i
Candidate’s Declaration ii
Abstract iii
Acknowledgement iv
List of figures v
List of tables vi
i
SANT LONGOWAL INSTITUTE OF ENGINEERING AND TECHNOLOGY
CANDIDATE’S DECLARATION
I , AMAN KUMAR hereby declare that I have undertaken 4 weeks Industrial Training at
ThinkNEXT Technologies Private Limited during a period from 28th June 2021 to 24th July 2021 in
partial fulfilment of requirements for the award of degree of B.E.(Computer Science and
LONGOWAL,PUNJAB. The work which is being presented in the training report submitted to
Signature of student
Signature of examiner
ii
ABSTRACT
This Report presents the experience and skills gained during 4 weeks of industrial training
My Training was on the Python, During the period, I acquired practical knowledge and skills in
using engineering software, also times were spent on small projects related to python. I was able
This report discusses the skills gained and experience gathered during the period of training,
justifying the relevance of the of the scheme in equipping students with needed technical
iii
ACKNOWLEDGEMENT
I would like to extend my sincere gratitude and appreciation to all those who joined all their efforts
Special thanks goes to my academic and field supervisors for their excellent work done during my
industrial training.
This industrial training was quite a learning experience for me at each and every step. At the same
time it has given me confidence to work in professional setup. I feel the experience gained during
the training will lead me to gain the bright prospect in the future. First of all I would like to thank
Head of T&P Department, R K Mishra sir, for giving me the opportunity to work in this esteemed
organization, which not only has increased our awareness about latest fields. With deep sense of
gratitude, I express my sincere thanks to Dr. Manminder Singh, for his active support and
continuous guidance without which it would have been difficult for me to complete this industrial
training. I will like to thanks the teacher and staff of ThinkNEXT Technologies Private Limited for
taking keen interest in our training and for giving valuable suggestions throughout the industrial
training period and also I would like to thank those one who helped me directly and indirectly to
Aman Kumar
BTech(CSE)
iv
List of figures
v
List of Tables
Table 1.1 8
Table 1.2 8
Table 1.3 9
Table 1.4 10
Table 1.5 11
Table 1.6 12
Table 1.7 12
Table 1.8 14
Table 1.9 17
vi
CHAPTER 1.1
INTRODUCTION TO ORGANISATION
services, consulting and business solution provider company that helps global
transformation.
web development
Robotics
Cloud
digital marketing
analytics
and emerging technologies to help client adapt to digital world and make
them successful.
Machine learning
1
CHAPTER 1.2
more.
2
SOFTWARE TRAINING WORK UNDERTAKEN
CHAPTER 2.1
INTRODUCTION TO PYTHON
Its design philosophy emphasizes code readability, and its syntax allows programmers to express
concepts in fewer lines of code than would be possible in languages such as C++ or Java. The
language provides constructs intended to enable clear programs on both a small and large scale.
functional programming or procedural styles. It features a dynamic type system and automatic
memory management and has a large and comprehensive standard library. Python interpreters are
available for installation on many operating systems, allowing Python code execution on a wide
variety of systems.
scripts, programs written for a special run-time environment that automate the execution of tasks
Scripting languages are often interpreted (rather than compiled). Primitives are usually the
elementary tasks or API calls, and the language allows them to be combined into more complex
programs. Environments that can be automated through scripting include software applications,
web pages within a web browser, the shells of operating systems (OS), embedded systems, as well
as numerous games.
3
A scripting language can be viewed as a domain-specific language for a particular environment; in
the case of scripting an application, this is also known as an extension language. Scripting
languages are also sometimes referred to as very high-level programming languages, as they
programming paradigm based on the concept of "objects", which may contain data, in the form of
fields, often known as attributes; and code, in the form of procedures, often known as methods. A
distinguishing feature of objects is that an object's procedures can access and often modify the data
fields of the object with which they are associated (objects have a notion of "this" or "self").
In Object Oriented Programming, computer programs are designed by making them out of objects
that interact with one another. There is significant diversity in object oriented programming, but
most popular languages are class-based, meaning that objects are instances of classes, which
History of Python
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
“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
4
CHAPTER 2.2
Data Type (this is called dynamic typing).:- Data types determine whether an object can do
something, or whether it just would not make sense. Other programming languages often
determine whether an operation makes sense for an object by making sure the object can never be
stored somewhere where the operation will be performed on the object (this type system is called
static typing). Python does not do that. Instead it stores the type of an object with the object, and
checks when the operation is performed whether that operation makes sense for that object
Python has many native data types. Here are the important ones:-
Numbers can be integers (1 and 2), Floats (1.1 and 1.2), Complex numbers.
Strings are sequences of Unicode characters, e.g. an HTML document. Bytes and
5
Variable:- Variables are nothing but reserved memory locations to store values. This means
that when you create a variable you reserve some space in memory. Based on the data type of a
variable, the interpreter allocates memory and decides what can be stored in the reserved
memory. Therefore, by assigning different data types to variables, you can store integers,
# An integer
# A floating
# A string
String In programming terms, we usually call text a string. When you think of a string as a
collection of letters, the term makes sense. All the letters, numbers, and symbols in this book
could be a string. For that matter, your name could be a string, and so could your address.
Creating Strings In Python, we create a string by putting quotes around text. For example, we
Concatenation
Ex:-
"hello"+"world"
"helloworld"
6
Repetition
Ex:-
"hello"*3
"hellohellohello"
Indexing
Ex:-
"hello"[0]
"h”
Slicing(from end)
Ex:-
"hello"[-1] "hello"[1:4]
"o" "ell"
Size
Ex:-
len("hello")
Comparison
Ex:-
Search
Ex:-
"e" in "hello"
Table 2.1
Comparison Operator
Tuples :- A tuple is a sequence of immutable Python objects. Tuples are sequences, just like lists.
The differences between tuples and lists are, the tuples cannot be changed unlike lists and tuples
use parentheses.
Accessing Values in Tuples: To access values in tuple, use the square brackets for slicing
along with the index or indices to obtain value available at that index.
2000); tup2 = (1, 2, 3, 4, 5, 6, 7 ); print "tup1[0]: ", tup1[0] print "tup2[1:5]: ", tup2[1:5]
When the above code is executed, it produces the following result − tup1[0]: physics
tup2[1:5]: [2, 3, 4, 5]
Tuples respond to the + and * operators much like strings; they mean concatenation and
repetition here too, except that the result is a new tuple, not a string. In fact, tuples respond to all of
Table 2.3
9
Table 2.4
List
The list is a most versatile datatype available in Python which can be written as a list of comma-
separated values (items) between square brackets. Important thing about a list is that items in a list
Creating a list is as simple as putting different comma-separated values between square brackets.
For example − list1 = ['physics', 'chemistry', 1997, 2000]; list2 = [1, 2, 3, 4, 5 ]; list3 = ["a", "b",
"c", "d"];
Similar to string indices, list indices start at 0, and lists can be sliced, concatenated and so on.
To access values in lists, use the square brackets for slicing along with the index or indices to
obtain value available at that index. For example − list1 = ['physics', 'chemistry', 1997, 2000];
list2 = [1, 2, 3, 4, 5, 6, 7 ]; print "list1[0]: ", list1[0] print "list2[1:5]: ", list2[1:5]
Output:
list1[0]: physics
list2[1:5]: [2, 3, 4, 5]
10
Update:
Output:
Delete:
del list1[2];
Output:
Table 2.5
11
Table 2.6
Table 2.7
12
CHAPTER 2.3
Loop definition: Programming languages provide various control structures that allow for more
13
Python programming language provides following types of loops to handle looping requirements.
Table 2.8
Loop Example:
For Loop:
Fig-2.2
Output:-
Hello 1
Hello 2
Hello 3
Hello 4
Hello 5
While Loop:
Fig 2.3
Ex:-
count = 0
while(count< 4):
print ('The count is:', count)
count = count + 1
15
Output:-
Conditional Statements:
Decision making is anticipation of conditions occurring while execution of the program and
specifying actions taken according to the conditions. Decision structures evaluate multiple
expressions which produce TRUE or FALSE as outcome. You need to determine which action
Fig 2.4
Statement Description
If statement An If statement consists of a Boolean expression followed by one or
more statements.
If else statement An if statement can be followed by an optional else statement,
which executes when the boolean expression is FALSE
Nested if we can use one if or else if statement inside another if or else if
statements(s).
Table 2.9
Example:
17
If Statement:
a=33
b=200
If b>a:
print(“b”)
If...Else Statement:
a=200
b=33
if b>a:
else:
CHAPTER 2.4
FUNCTION IN PYTHON
Function:- A function is a block of code which only runs when it is called.You can pass data,
Creating a Function
def my_function():
Calling a Function
def my_function():
my_function()
19
Arguments
Arguments are specified after the function name, inside the parentheses. You can add as many
The following example has a function with one argument (fname). When the function is called, we
pass along a first name, which is used inside the function to print the full name:
def my_function(fname):
my_function("Emil")
my_function("Tobias")
my_function("Linus")
def my_function(country = "Norway"):
my_function("India")
my_function()
20
my_function("Brazil")
You can send any data types of argument to a function (string, number, list, dictionary etc.), and it
E.g. if you send a List as an argument, it will still be a List when it reaches the function:
def my_function(food):
for x in food:
print(x)
fruits = ["apple", "banana", "cherry"]
my_function(fruits)
Return Values
def my_function(x):
return 5 * x
print(my_function(3))
print(my_function(5))
print(my_function(9))
21
Python Lambda
A lambda function can take any number of arguments, but can only have one expression.
Syntax:- lambda arguments : expression
Example:-
x = lambda a : a + 10
print(x(5))
22
CHAPTER 2.5
The finally block lets you execute code, regardless of the result of the try- and except blocks.
Exception Handling
When an error occurs, or exception as we call it, Python will normally stop and generate an error
message.
EX:-
try:
print(x)
except:
Since the try block raises an error, the except block will be executed.
Without the try block, the program will crash and raise an error:
23
Many Exceptions
You can define as many exception blocks as you want, e.g. if you want to execute a special block
Example
Print one message if the try block raises a NameError and another for other errors:
try:
print(x)
except NameError:
except:
Finally:- The finally block, if specified, will be executed regardless if the try block raises an error
or not.
Example
try:
print(x)
except:
print(“Something went wrong”)
finally:
24
CHAPTER 2.6
File Handling
"r" - Read - Default value. Opens a file for reading, error if the file does not exist
"a" - Append - Opens a file for appending, creates the file if it does not exist
"w" - Write - Opens a file for writing, creates the file if it does not exist
"x" - Create - Creates the specified file, returns an error if the file exists
Syntax
To open a file for reading it is enough to specify the name of the file:
f = open("demofile.txt")
Because "r" for read, and "t" for text are the default values, you do not need to specify them.
25
CHAPTER 3
Calculator
Code:-
from tkinter import *
root=Tk()
root.title('Calculator')
root.geometry('281x250')
root.resizable(0,0)
expr=''
def show(n):
global expr
expr+=n
num.set(expr)
def clearall():
global expr
expr=''
num.set(0)
def calculate():
global expr
result=str(eval(expr))
num.set(result)
expr=''
num=StringVar()
expression_field=Entry(root,textvariable=num,width=23,justify=RIGHT,bg='light blue
',font=('arial',16,'bold')).grid(columnspan=4,ipady=8)
clear=Button(root,text='C',height=2,width=30,command=lambda:clearall()).grid(row=1
,column=0,columnspan=3)
divide=Button(root,text='/',height=2,width=7,command=lambda:
('/')).grid(row=1,column=3)
26
btn7=Button(root,text=7,height=2,width=7,command=lambda:show('7')).grid(row=2,colu
mn=0,sticky=NSEW)
btn8=Button(root,text=8,height=2,width=7,command=lambda:show('8')).grid(row=2,colu
mn=1,sticky=NSEW)
btn9=Button(root,text=9,height=2,width=7,command=lambda:show('9')).grid(row=2,colu
mn=2,sticky=NSEW)
multiply=Button(root,text='X',height=2,width=7,command=lambda:show('*')).grid(row=
2,column=3,sticky=NSEW)
btn4=Button(root,text=4,height=2,width=7,command=lambda:show('4')).grid(row=3,colu
mn=0,sticky=NSEW)
btn5=Button(root,text=5,height=2,width=7,command=lambda:show('5')).grid(row=3,colu
mn=1,sticky=NSEW)
btn6=Button(root,text=6,height=2,width=7,command=lambda:show('6')).grid(row=3,colu
mn=2,sticky=NSEW)
minus=Button(root,text='-',height=2,width=7,command=lambda:show('-')).grid(row=3,c
olumn=3,sticky=NSEW)
btn1=Button(root,text=1,height=2,width=7,command=lambda:show('1')).grid(row=4,colu
mn=0,sticky=NSEW)
btn2=Button(root,text=2,height=2,width=7,command=lambda:show('2')).grid(row=4,colu
mn=1,sticky=NSEW)
btn3=Button(root,text=3,height=2,width=7,command=lambda:show('3')).grid(row=4,colu
mn=2,sticky=NSEW)
add=Button(root,text='+',height=2,width=7,command=lambda:show('+')).grid(row=4,col
umn=3,sticky=NSEW)
btn0=Button(root,text=0,height=2,width=21,command=lambda:show('0')).grid(row=5,col
umn=0,columnspan=2,sticky=NSEW)
decimal=Button(root,text='.',height=2,width=7,command=lambda:show('.')).grid(row=5
,column=2,sticky=NSEW)
equal=Button(root,text='=',height=2,width=7,command=lambda:calculate()).grid(row=5
,column=3,sticky=NSEW)
root.mainloop()
27
Screenshot
Fig 3.1
28
TextUtils
Code:
Views.py
def index(request):
# return HttpResponse('Home')
def analyze(request):
# Get text
# print(removepunc)
29
if removepunc == 'on':
punctuations = '''!()-{}[];:'"\,<>./?@#$%^&*~_'''
analyzed = ''
analyzed = ''
if char != '\n':
30
analyzed = ''
else:
Analyze.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
31
<title>Analyzing Text..</title>
</head>
<!--<style>-->
<!-- body{-->
<!-- background-color:black;-->
<!-- }-->
<!--</style>-->
<body>
<p>
{{ analyzed_text}}
</p>
</body>
</html><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Analyzing Text..</title>
32
</head>
<!--<style>-->
<!-- body{-->
<!-- background-color:black;-->
<!-- }-->
<!--</style>-->
<body>
<p>
{{ analyzed_text}}
</p>
</body>
</html>
Urls.py
from django.contrib import admin
33
urlpatterns = [
path('admin/', admin.site.urls),
Index.html
<!DOCTYPE html>
<head>
<meta charset="UTF-8">
<title>TextUtils</title>
</head>
34
<style
body{
background-color : yellowgreen
</style>
<body>
<h1>Welcome to my WebPage</h1>
</form>
</html>
35
Screenshot
Fig 4.1
Fig 4.2
36
TextUtils
1)Remove Punctuations
2)UPPERCASE
5)Numbers Remover
Requirments
python3
django
37
I believe the trial has shown conclusively that it is both possible and desirable to use Python as the
principal teaching language:
• It is trivial to install on a Windows PC allowing students to take their interest further. For many
the hurdle of installing a Pascal or C compiler on a Windows machine is either too expensiveyr too
complicated
• It is a flexible tool that allows both the teaching of traditional procedural programming and
modern OOP.
• It is a real-world programming language that can be and is used in academia and the commercial
world.
• It appears to be quicker to learn and, in combination with its many libraries, this offers the
possibility of more rapid student development allowing the course to be made more challenging
and varied. and most importantly, its clean syntax offers increased understanding and enjoyment
for students.
The training program having three destination was a lot more useful than staying at one place
throughout the whole 4 weeks. In my opinion. I have gained lots of knowledge and experience
needed to be successful in great engineering challenge as in my opinion, Engineering is after all a
Challenge ,and not a job .
38