0% found this document useful (0 votes)
11 views

Python Internship Document

The document is an internship report submitted by S. Naveen for the Bachelor of Commerce with Computer Application degree, detailing his training at Optimus Technocrates (India) Pvt. Ltd. in Salem. It covers the objectives of the internship, a description of the institution, and an overview of Python programming, including its history, features, and advantages. The report also includes acknowledgments and a structured outline of the content covered during the internship.

Uploaded by

Naveenkumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Python Internship Document

The document is an internship report submitted by S. Naveen for the Bachelor of Commerce with Computer Application degree, detailing his training at Optimus Technocrates (India) Pvt. Ltd. in Salem. It covers the objectives of the internship, a description of the institution, and an overview of Python programming, including its history, features, and advantages. The report also includes acknowledgments and a structured outline of the content covered during the internship.

Uploaded by

Naveenkumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 31

A REPORT ON INTERNSHIP “OPTIMUS TECHNOCRATES (INDIAN) PVT.

LTD”
ARRS MULTIPLEX THEATER ROAD, NEW BUS STAND, SALEM – 9.

A In-plant training report submitted to the partial fulfillment of the requirements for the
award of the degree
of

BACHELOR OFCOMMERCEWITH COMPUTER APPLICATION

Submitted
by
S.NAVEEN
(REG NO:22BCC1061)
Under the guidance
of
DR.K.BEEMABAI, M.Com.,M.Phil., Ph.D., Assistant Professor

DEPARTMENT OF COMMERCE-CA
Mahendra Arts & Science College (Autonomous)
Affiliated to Periyar University, Recognized u/s 2(f) & 12(b) of the UGC act 1956
NAAC „A‟ Grade / NIRF All India 67 Ranking, Kalippatti (P.O.), Tiruchengode (Tk.), Namakkal
(Dt.), Pin - 637501.

OCTOBER - 2024
CERTIFICATE

This is to certify that the in-plant training report on “OPTIMUS TECHNOCRATES


(INDIA) PVT.LTD., at Salem District” submitted for the partial fulfillment of the
requirements for the award of the degree of Bachelor of Commerce with Computer
Application (2022-2025) is record of original work done by S.NAVEEN,(22BCC1061), during
the period of his study in Department of Commerce(CA), Mahendra Arts & Science College
(Autonomous) Under my guidance and supervision and the training work has not formed the
basis for the award of any Degree/Diploma/Associate ship/Fellowship or similar title to any
candidate of any other University.

Signature of the Signature of the

Head of the Department Guide and Supervisor

(Mr.K.BALAKRISHNAN, M.Com, M.B.A., M.Phil.,Ph.D.,) (DR.K.BEMABAI, M.Com.,M.Phil.,Ph.D.,)

In-Plant Training Viva-voce Examination held on ……………………

INTERNAL EXAMINER EXTERNAL EXAMINER


DECLARATION

I hereby declare that the internship report on “OPTIMUS TECHNOCRATES (INDIA)

PVT.LTD., at Salem District”” submitted to Periyar University in partial fulfillment of the

requirements for the award of the degree of Bachelor of Commerce in Computer Applications is

report of original work done by S.Naveen (Reg.No.: 22BCC1061) ,under the guidance and

supervision of Mrs.DR.K.BEEMABAI, M.Com.,M.Phil., Ph.D., Assistant Professor, Department

of Commerce CA, Mahendra Arts & Science College (Autonomous), and it has not formed the basis

for the award of any Degree/Diploma/Associateship /Fellowship or similar report to any candidate of

any other University.

Place: Kalippatti Signature of the Candidate


Date: (S.NAVEEN)
ACKNOWLEDGEMENT

First we would like to thank god with folded hands for his blessings in my attempt to
complete my internship successfully.

We record our sincere gratitude to Thiru. M. G. BHARATHKUMAR, M.A., B.Ed.,


Chairman of Mahendra Educational Trust, for offering me an opportunity and providing me all the
facilities to do my internship.
We also express our profound and heartfelt thanks to the Principal of Mahendra Arts and
Science College (Autonomous), Prof. Dr. S. ARJUNAN, SET., Ph.D., for his constant
encouragement.

We express our profound thanks to Mr. K. BALAKRISHNAN, M.Com., M.B.A., M.Phil.,


(Ph.D)., Head of Department of Commerce in Computer Applications, for his motivation, moral
support and valuable suggestions given to us during the internship.

We take his opportunity to express our immense gratitude to internship guide


Mrs.DR.K.BEEMABAI, M.Com., M.Phil., Ph.D., to do internship under her guidance and
supervision. His guidance and valuable suggestions, continuous co-operation and motivation
encouragement has greatly inspired and helped me to complete various stages of this internship.

We consider it an occasion for extending our thanks to all the faculty members of
Department of Commerce in Computer Applications, for their co-operation and support throughout
the internship.

We are thankful to our family members whose support and affection helped us to bring this
effort to success.
CONTENT

S.NO. TITLE PAGE NO.

INTRODUCTION
1

OBJECTIVES
2

DESCRIPTION OF THE INSTITUTION


3

REPORT OF INTERSHIP
4

PYTHON
5

HISTORY BACKGOUND OF THE

6 COMPANY HISTORY

UNDERSTANDING THE PYTHON


7 ENVIRONMENT

FEATURES
8

WEAKNESSES
9

CONCLUSION
10
INTRODUCTION

Python is developed by Guido van Rossum. Guido van Rossum started


implementing Python in 1989. Python is a very simple programming language so even if you
are new to programming, you can learn Python without facing any issues.

Interesting fact: Python is named after the comedy television show Monty Python‟s Flying
circus. It is not named after the Python snake.

Python is a high-level, interpreted scripting language developed in the 1980s by


Guido van Rossum at the National Research Institute for Mathematics and Computer Science
in the Netherland.

 Python works on different plat forms (Windows,Mac,Linux,RaspberryPi,etc).


 Python has a simple syntax similar to the English language.
 Pythonhassyntaxthatallowsdeveloperstowriteprogramswithfewerlinesthansome other
programming languages.
 Python can be treated in a procedur alway, an object-oriented way or a functional way.

OBJECTIVES
 Internship are generally thought of to be reserved for college students looking to gain
experience in a particular field.
 However, a wide array of people can benefit from Training Internship in order to
receive real world experience and develop their skills.
 An objective for this position should emphasize the skills students already possess in
the area and their interest in learning more.
 Internship is used to allow individuals to perform scientific research. Specifically
designedtoallowpeopletogainfirst-handexperienceworking.Utilizinginternshipsis
agreatwaytobuildyourresumeanddevelopskillsthatcanbeemphasizedinstudents resume
for future jobs.
 When they are applying for a Training Internship, make sure to highlight any special
skills or talents.
 Internscanstandapartfromtherestoftheapplicantssothattheycanhaveanimproved chance
of landing the position.
 Understanding the PYTHON environment.
 To understand why Python is a useful scripting language for developers.

1
 To learn how to design and program Python applications.
 To learn how to use lists, tuples, and dictionaries in Python programs.
 To learn how to identify Python object types.
 To learn how to use indexing and slicing to access data in Python programs.
 To define the structure and components of a Python program.
 To learn how to write loops and decision state ments in Python.
 To learn how to write functions and pass arguments in Python.
 To learn how to build and package Python modules for reusability.
 To learn how to read and write files in Python.
 To learn how to design object-oriented programs with Python classes.
 To learn how to use class in heritance in Python for reusability.

DESCRIPTIONOFTHEINSTITUTION

ORGANIZATIONPROFILE

Optimus Warm Greetings………

Who we are?

OptimusTechnocrates(India)Pvt.Ltd.,doSoftwareDevelopment,WebsiteDesigning and
Mobile Application development And Data centre Administration Certification courses, In-
Planttrainings,Workshops,Seminars,FacultyDevelopmentProgramme,RealtimeProject
development and Placement assistance along with Web Hosting and Outsourcing. We
established our Company in the year 2008, Head Office in Chennai and branch offices in
Coimbatore,. Our team consists of Highly proficient and Experienced Managing Director,
Excellent HR Manager, and Qualified Trainers in various streams. We have good Industrial
and teaching exposure and so we transform students and learners to experts.

2
Our Services

 Software Development
 Web Development
 Business Processing Out Sourcing
 Conduct off Campus and On Campus Drives in and around Tamil Nadu

Our Vision

We will be regarded as the centre of excellence, an education provider of choice for


career commencement and professional development to the Students in an educational
Institution. We will be committed to gaining a reputation of excellence in delivering quality
education services to, local peoples to reach and achieve their goals.

Our Mission
“Optimus Techno crates (India) Pvt. Ltd., is a Software Development company
endeavors to be a professional, community spirited and progressive training body, offering
flexible, tailored training and education solutions designed to educate, inspire and motivate
individuals and businesses helping you reach and achieve your goals and aspirations”

SERVICES:
ERP
ERP is short for enterprise resource planning. Enterprise resource planning (ERP) is
business process management software that allows an organization to use a system of
integratedapplicationstomanagethebusinessandautomatemanybackofficefunctionsrelated to
technology, services and human resources. “Optimus Techno crates (India) Pvt. Ltd.,
provides you real time, fully integrated ERP Sys team for your business success and growth.
We promise you the international standard.

CRM

In CRM (customer relationship management), CRM software is a category of


software that covers a broad set of applications and software designed to help businesses
manage customer data and customer interaction, access business information, automate sales,
marketingandcustomersupportandalsomanageemployee,vendorandpartnerrelationships.
Optimus provides CRM software which is designed to help businesses meet the overall goals
of customer relationship management.

3
OVER VIEW OF INTERNSHIP

S.NO DATE DAY TOPIC

1 23.05.2024 Thursday Programming Basics

2 24.05.2024 Friday Compiling and Interpreting

3 25.05.2024 Saturday Expressions

4 27.05.2024 Monday Arithmetic Operators

5 28.05.2024 Tuesday Math Commands

6 29.05.2024 Wednesday Floating point, Variable

7 30.05.2024 Thursday Assignment Operator

8 31.05.2024 Friday For Loop, Range

9 01.06.2024 Saturday If Statement, If-else Statement

10 03.06.2024 Monday Multiple Condition(else if)

11 04.06.2024 Tuesday While Loop

12 05.06.2024 Wednesday Logic

13 06.06.2024 Thursday Numbers

14 07.06.2024 Friday Lists, Tuples

15 08.06.2024 Saturday Set, Dictionary

4
PYTHON
Python is a high-level, interpreted, interactive and object-oriented scripting language.
Python is designed to be highly readable. It uses english keywords frequently where as other
language use punctuation and it has fewer syntacial construction than other language.
PYTHONISINTERPRETED:Pythonisprocessedatruntimebytheinterpreted.You do
not need to compile your program before executing it. This is similar to PERL and PHP.
PYTHON IN INTERACTIVE: You can actually sit at a python prompt and interact
with the interpreter directly to write your program.
PYTHON IS OBJECT-ORIENTED: Python supports object-oriented style or
technique of programming that encapsulates code within objects.
PYTHON IS A BEGINNER‟S LANGUAGE: Python is a great language for the
beginner-level programmers and supports the development of a wide range of applications
from simple test processing to www browsers to games.

HISTORYOFPYTHON
 Python was developed by Guido Van Rossum in the late eighties and early nineties at
the National Research Institute for Mathematics and computer science in the
Netherlands.
 Python is derived from many other languages, including ABC, Modula-3, C, C++,
Algal-68, Smart talk, Unix shell, and other script languages.
 AI the time when he began implementing python, Guido Van Rossum was also
reading the published scripts from “Monty Python‟s Flying Circus”. (a BBC comedy
series from the seventies in the unlikely case you didn‟t know). It occurrence to him
that he needed a name that was short, unique, and slightly my sterious, so he decided
to call the language python.
 Python is now maintained by a core development team at the institute, although
Guido Van Rossum still holds a vital role in directing it progress.
 Python1.0wasreleasedan20 February,1994
 Python 2.0 was released on 16 October, 2000 and had many major new features,
includingacycledetectinggarbagecollectorandsupportforUnicode.Withthisrelease the
development process was changed and became more transparent and community
backed.

5
 Python 3.0 (which early in its development was commonly referred to as python 3000
orpy3k), a major, backwards-incompatible release, was released on 3December,2008
after a long period of testing. Many of its major feature have been back ported to the
backward-compatible python 2.6x and 2.7x version series.
 In January 2017 Google announced work on a python 2.7 to go trans compiler, which
the register speculated was in response to python 2ts planned end-of-life.
WHAT AREPYTHON‟S TECHNICALSTRENGTH?
 It_s Object-Oriented and Functional
 It_s Free
 It_s Portable
 It_s Powerful
 It_s Mixable
 It_s Relatively easy to use

PYTHONFEATURES
Python‟s features include
 EASY-TO-LEARN: Python has few keywords, simple structure, and a clearly
defined syntax. This allows the students to pick up the language quickly.
 EASY-TO-READ: Python code is more clearly defined and visible to the eyes.
 EASY-TO-MAINTAIN: Python‟s source code is fairly easy-to-maintain.
 ABROADSTANDARDLIBRARY: Python‟s bulk of the library is very portable and
cross-flat form compatible on UNIX, Windows and Macintosh.
 INTERACTIVE MODE: Python has support for an interactive mode which allows
interactive testing and debugging of snippets of code.
 PORTABLE: Python can run on a wide variety of hard ware plat forms and has the
same interface on all platforms.
 EXTENDABLE: You can add low-level modules to the python interpreter. These
modulus enables programmers to add to or customize their tools to be more efficient.
 DATABASES: Python provides interfaces to all major commercial databases.
 GUI PROGRAMMING: Python supports GUI applications that can be created and
parted to many system call, libraries, and windows systems, such as Windows MTC,
Macintosh and the X Window system of UNIX.

6
 SCALABLE: Python provides a better structure and support for large programs that
shell scripting.

ADVANTAGESOFPYTHON
 Presence of third-party modules.
 Extensive support libraries (Num Py for numerical calculations, Pandas for data
analytics, etc.)
 Open source and large active community base.
 Versatile, Easy to read, learn and write.
 User-friendly data structure.
 High-level languages.
 Object-Oriented and Procedural programming language.
 Portable and Interactive.
 Portable across operating systems

DISADVANTAGEOFPYTHON
 Poor Memory Efficient.
 Slow speed.
 Data base Access.
 Weak in Mobile Computing.
 Runtime Errors.
 Design Restriction.
 Speed Limitations.
USESOFPYTHON
 AI and Machine Learning
 Data Analysis
 Data Visualisation
 Programming Applications
 Web Development
 Game Development
 Language development
 Finance
 Design

7
UNDERSTANDINGTHEPYTHONENVIRONMENT

There are several benefits of using virtual environments:


 Dependency Management
 Reproducibility
 Debugging
 Security
 Isolation
TOOLS FORM ANAGINGPYTHONVIRTUALENVIRONMENTS:
There are a lot of tools for managing virtual environments in Python. We will discuss
some of the widely used virtual environment tools, such as,
 Pythonvenv
 Pipenv
 Pyenv
 peotry

PROGRAMMINGBASICS
SOURCE CODE

In simple we can say source code is a set of instructions/commands and statements


which is written by a programmer by using a computer programming language like C, C++,
Java, Python, Assembly language etc.

SYNTAX

These to furls that defines how a python program will be written and interpreted.

8
OUTPUT

The print () function prints the specified message to the screen, or other standard
output device. The message can be a string, or any other object, the object will be converted
into a string before written to the screen.

CONSOLE

The console appears as a tool window every time you choose the corresponding
command on the tool menu.

COMPILING AND INTERPRETING

In the context of python, a compiler is a software tool that translates python code
written in high-level human-readable form into low-level machine code or byte code that can
be executed directly by a computer.

A python interpreter is a computer program that converts each high-level program


statement into machine code. An interpreter translates the command that you write out into
code that the computer can understand.

THEPYTHONINTERPRETER

Example:1

>>>4+7

11

>>>4<1

True

>>>„printme‟

„print me‟

>>>Print‟HelloWorld‟

Hello World

>>>

9
EXPRESSION

An expression in python is a combination operators and operands.

Example:2

X=x+10

In this expression, the first 10 is added to the variable. After the addition is performed,
the result is assigned to the variable x.

Program:

x=40

X=x+30

Print(X)

Output:

70

ARITHMETICOPERATORS

An Arithmetic Operator is a mathematical function that performs a calculation on two


operands. The different types of arithmetic operators include addition, subtraction,
multiplication, division, modulus, exponentiation and floor division.

OPERTOR SYNTEX WORKING


+ x+y Addition of x and y
- x-y Subtraction of y from x
* x*y Multiplication of x and y
/ x/y Division of x and y
// x//y Quotient when x is divided by y
% x%y Remainder when x is divided by y
** x**y Exponent (x to the power of y)

10
https//:www.python arithmetic operator
Example: 3

a= 7

b=2

Print („Sum:„, a+b)

Print („Subtraction: „, a – b)

Print („Multiplication: „,a*b)

Print („Division: „, a / b)

Print („Floor Division: „,a//b)

Print („Modulo: „, a % b)Print

(„Power: „, a ** b) Output:

Sum: 9

Subtraction: 5

Multiplication: 14

11
Division: 3.5

Floor Division: 3

Modulo: 1

Power: 49

INTEGERDIVISION

The % (integer divide) operator divides two numbers and returns the integer part of
the result. The result returned is defined to be that which would result from repeatedly
subtracting the divisor from the dividend while the dividend is larger than the divisor.

MATHCOMMANDS

Python has use full commands for performing calculations.

COMMANDNAME DESCRIPTION
Abs (value) absolute
Ceil (value) Round sup
Cos (value) Cos in radians
Floor (value) rounds down
Log (value) Log base
log10 (value) Log base10
Max (value1,value2) Large of two values
Min (value1,value2) Small of two values
Nearest whole
Round (value)
number
Sin (value) sine in radians
Sqrt (value) square root

12
FLOATINGPOINT

Floatisafunctionorreusablecodeinthepythonprogramminglanguagethatconverts values
into floating point numbers. Floating point numbers are decimal values or fractional numbers
like 133.5, 2897.11 and 367.89, whereas real numbers like 56, 2 and 33 are called integers.

 Int (x) converts x to integer.


 Float(x) converts to floating point.

VARIABLES

A python variable is a symbolic name that is a reference or pointer to an object. Once


an object is assigned to a variable, you can refer to the object by that name. But the data itself
is still contained within the object.

Rules:

 Only alphabetic characters, digits and under scores are permitted.


 The name can not start with a digit.
 Upper case and lower case letter saredistinct.
 A declared key word can not be use data variable name.

ASSIGNMENTOPERATOR

The assignment operator denoted by the “=” symbol, is the operator that is used to
assign values to variables in python. (eg: The line x=1 takes the known value 1, and assigns
that value to the variable with name “x”.)

13
PRINT

Theprint()functionprintsthespecifiedmessagetothescreen,orotherstandardoutput
device. The message can be a string, or any other object, the object will be converted into a
string before written to the screen.

INPUT

Pythoninput()functionisusedtogetinputfromtheuser.Itpromptsfortheuserinput and reads


a line. After reading data, it converts it into a string and returns that.

Example:4

>>>name=input(„Enter your name:‟) Enter

your name : Sowmiya

>>> name

„Sowmiya‟

REPETITION(LOOPS)ANDSELECTION(IF/ELSE)

FOR LOOP

A for loop in python is a control flow statement that is used to repeatedly execute a
groupofstatementsaslongastheconditionissatisfied.Suchatypeofstatementisalsoknown as an
iterative statement.

Example:5

forxin“SOWMI”

print (x)

Output:

14
RANGE

The range () function returns a sequence of numbers, starting from 0 by default, and
increments by 1 (by default), and stops before a specified number.

Syntax:

Range (start,stop,step)

PARAMETERVALUES

PARAMETER DESCRIPTION
Optional. An integer number specifying at which position to start.
Start
Defaultis0.
Required. An integer number specifying at which position to stop
Stop
(not included)
Optional. An integer number specifying the incrimination.
Step
Defaultis1.

Example:6

#createasequenceofnumbersfrom0to4

numbers = range(5)

#iteratingthroughthesequenceofnumbers for

I in numbers:

print(i)

Output:

15
CUMMULATIVELOOPS

Some loops incrementally compute a value that is initialized outside the loop.This is
sometimes called a cumulative sum.
FACTORIAL:

Notmanypeopleknow,butpythonoffersadirectfunctionthatcancomputethefactorial of a
number without writing the whole code for computing factorial.

Example:7

num= 5

factorial=2 if

num< 0:

print(“Sorry, factorial does not exist for negative numbers”)

elif num == 0:

print(“Thefactorialof0is1”) else:

for I in range(1,num+1):

factorial=factorial*i

print(“The factorial of”, num, ”is”, factorial)

Output:

Thefactorialof5is 240

IFSTATEMENT

Python if statement is used for decision-making operations. It contains a body of code


which runs only when the condition given in the if statement is true. If the condition is false,
then the optional else statement runs which contains some code for the else condition.

Syntax:

if condition

statements

16
Example:8

U =10, V=20
ifU>V:

print(UisgreaterthanV”)

Output:

VisgreaterthanU

IF-ELSESTATEMENT

The if-else statement is used to execute both true part and the false part of a given
condition. If the condition is true, the if block code is executed and if the condition is false,
the else block code is executed.

Syntax:

if condition:

statements

else:

statements

Example:9

U=57, V=57

If V>U:

Print (“U is greater than V”)

if-else U==V:

print (“U and V are equal”)

Output:

U and V are equal

17
MULTIPLE CONDITION CAN BE CHAINED WITH ELIF(“ELSE IF”)

Syntax:
if condition:

statements

elif condition:

statements

else condition:

statements

Example:10

U =20

V =40

W=10

if((U>VandU>W)and(U!=Vand U!=W)):

print(U,“isthelargest”)

elif((V>UandV>W)and(V!=UandV!=W)):

print(V,“isthelargest”)

elif((W>UandW>V)and(W!=UandW!=V)):

else:

print(“Enterednumbersareequal”)

Output:

40 is the largest

18
WHILE LOOP:

A while loop is a control flow statement which hallows code to be executed


repeatedly, depending on when the recondition is satisfied or not. As long as some condition
is true, „while‟ repeats everything inside the loop block

Example:11

i= 1
whilei<2:

print(i)

i += 1

Output:

LOGIC

 Many logical expression serelational operators:

OPERATOR MEANING EXAMPLES RESULT


== Equals 1+1==2 True
!= Does not equal 3.2! =2.5 True
< Less than 10<5 False
> Greater than 10>5 True
<= Less than or equal to 126<=100 False
>= Greater than or equal to 5.0>=5.0 True

 Logical expressions can be combined with logical operators

OPERATOR EXAMPLE RESULT


and 9!=6and2<3 True
or 2==3or -1<5 True
not not7>0 False

19
LOOPCONTROLSTATEMENTS

Loop control statement sare used to change the flow of execution. These can be use
dif you wish to skip an iteration or stop the execution. The three types of loop control
statements in python are break statement, continue statement, and pass statement.

Break Jumps out of the closes ten closing loop


Jumps to the top of the closes ten closing
Continue
loop
Does nothing, empty statement place
Pass
holder
EVERYTHINGISAN OBJECT

In object-oriented programming languages like python, an object is an entity that


contains data along with associated metadata and/or functionality. In python everything is an
object, which means every entity has some metadata (called attributes) and associated
functionality (called methods).

NUMBERS: INTEGERS

In python, integers are zero, positive or negative whole numbers without a fractional
part and having unlimited precision.(e.g:0,100, -10.Thefollowingsarevalidintegerliterals
inpython.Integerscanbebinary,octalandhexadecimalvalues.Allintegerliteralsorvariables are
objects of the int class.)

NUMBERS: COMPLEX

The complex data type in python consists of two values, the first one is real part of the
complex number, and the second one is the imaginary part of the complex number. We
usually denote the real part using i and the imaginary part with j. (e.g : (4+3j) or (3i+4j))

Example:12

Z = complex (1,9)

Print(“output:”,Z)

Output:

(1+9j)

20
STRINGLITERALS

A string literal can be created by writing a text (a group of characters) surrounded by


a single(„‟),double(“”), or triple quotes. By using triple quotes we can write multi-lines trings
or display them in the desired way.

Example:13

V= „VIJAY‟

S = “SIVA”

A=„„„ARJUN‟‟‟

print(V)

print(A)

print(A)

Output:

VIJAY

SIVA

ARJUN

TYPESOFDATACOLLECTION

Python has 4 built-in data structures that can be used to hold a collection of objects,
theyarelist,tuple,set,anddictionary.Theycanbedistinguishedintomutable,immutable,set type,
and mappings respectively.

21
LISTS

Lists are ordered mutable sequence that can be changed after they have been created
by adding, removing, or changing objects. Lists can be declared by using square brackets “[]”
following the variable name.
Example:14

prices=[30,60,10,30]

TUPLES

Tuples are ordered immutable sequence that stores multiple items in a single variable,
meaning it cannot be changed after it has been created. A tuple can be created by a pair of
parenthesis and comma-separated objects, following the variable name.

Example:15

Vegetables=(“Cabbage”, “Carrot”, “Potato”)

 Single object tuples are referred to as asing let on. It can be created by using a trailing
comma after the objects, or else python identifies it as a string.

Example:16

fruits=(“jackfruit”) fruits= (“jackfruit”,)

type(fruit) type(fruit)

str tuple

 Commas are what make satuple, as parent theses are optional.

Example: 17

letters=„t‟,„u‟,„y‟

type(letters)

tuple

22
SET

Sets are an unordered immutable set of unique objects that do not support duplicated
objects and as such, they cannot be indexed. Mathematical operations such as intersection,
union, difference, and symmetric difference, can be created by using curly brackets following
the variable names or using the set() constructor.

Example:18

letters={„n‟,m‟,„c‟,„s‟}

letters=set((„n‟,„m‟,„c‟, „s‟))

DICTIONARY

A dictionary is an unordered set of key/value pairs. Each unique key has a value
associated with it in the dictionary, and dictionaries can have any number of pairs. The values
associated with a key can be any object. Like sets, dictionaries are unordered.

Example:19

age={“joseph”:20,

“Samantha”: 19,

“trisha”:50,

Print(age)

Output:

{„joseph‟:49,„samantha‟:19,„trisha‟: 50‟}

Values in dictionary items can be of any data type.

23
Example:20

Bike={

“brand”:“pulsar”,

“year”: 2020,

“colors”:[“black”, “blue”]

Print(car)

Output:

{„brand‟:„pulsar‟,„year‟:2020,„colors‟:[„black‟, „blue‟]}

Dictionaries are mutable, this allows items to be added or removed even after the
dictionary has been created. However, duplicates are not allowed, as adictionary can not have
multiple items with the same key, because the values will over write and the most recent
value will be returned.

Example:21

Car={

“brand”:“BMW”,

“electric”: false,

“year”: 1964,

“colors”:[“black”,“white”]

“year”: 1970

Print(car)

Output:

{„brand‟:„BMW‟,„electric‟:false,„year‟:1970,„colors‟:[„black‟,„white‟]}

24
STRENGTHS

 Easy to learn.

 Easy to get things done quickly.

 Support on lots of different platforms.

 Lots of good libraries.

 Readable, English-like syntax.

 Rich eco system of libraries, esp. for data science and machine learning.

WEAKNESSES
 The GIL makes multi threading problematic.

 Pure Python code is molasses-slow to execute.

 Theimplementationoflambdasiscrippledbyitsrestrictiontoasingleexpression.

 The2.7vs3.xriftisproblematic.

25
CONCLUSION

In conclusion, the internship was a useful experience. It helps to enhance and develop
my skills, abilities, and knowledge and meet many new people. Optimums also a good place
to do the internship. Since it provide numerous benefits and advantages to the piratical
trainees.

It also gives me motivation to become a survey or in the future and also taught me
how too where come challenges that If aced during the internship. The essence of internship
to prepare the student for the profession and the more competitive environment ahead of them
as they achieve their goals and dreams. I am glad to finish the internship successfully.

26

You might also like