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

Window 10 Activation

This document is a report on a summer training program about Python submitted by Sanyam Gujral. It includes an introduction to the training institute IQRA Software Technologies and its mission to provide IT and software skills training. The report then covers the history of Python, why it is useful, its characteristics, common data structures in Python like lists, tuples, dictionaries and sets, file handling in Python, the use of the NumPy package, and concludes that Python is a good teaching language.

Uploaded by

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

Window 10 Activation

This document is a report on a summer training program about Python submitted by Sanyam Gujral. It includes an introduction to the training institute IQRA Software Technologies and its mission to provide IT and software skills training. The report then covers the history of Python, why it is useful, its characteristics, common data structures in Python like lists, tuples, dictionaries and sets, file handling in Python, the use of the NumPy package, and concludes that Python is a good teaching language.

Uploaded by

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

Summer training

Report on
“Python”
Submitted by:

SANYAM GUJRAL(1813310175)

SUBMITTED BY::

MRS. MEGHA GUPTA

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

NOIDA INSTITUTE OF ENGINEERING TECHNOLOGY,

GREATER NOIDA

1
SUBMIITED TO: NIET COLLEGE

AFFILIATED TO: AKTU LUCKNOW

REPORT CONTENT-

1. INTRODUCTION OF INDUSTRY
2. HISTORY OF PYTHON
2
3. WHY PYTHON?
4. CHARACTERSTICS OF PYTHON
5. DATA STRUCTURES IN PYTHON
6. FILE HANDLING IN PYTHON
7. USE OF NUMPY
8. CONCLUSION

INTRODUCTION TO INDUSTRY-

IQRA Software Technologies, is a premier institute which


provides IT and software skills training in Scientific &
Engineering field with best quality at lower cost.We are
ones of the fastest growing software solution,technical
consultancy and knowledge outsourcing company
situated in India with offices at Banglore,Kanpur and
Lucknow.

3
Mission

IQRA Software is committed to its role in technical


training individual or corporate in areas of Speech
Compression, Image Processing,Control System,
Wireless
LAN,VHDL,Verilog,MATLAB(Scilab),DSP
TMS320C67xx,JAVA,Microsoft.NET,Software Quality
Testing,SDLC & Implementation,Project
Management,Manual Testing,Silk Test,Mercury
Test,QTP,Test Director for Quality Center.Vision
DSP,VLSI,Embedded and Software testing are one of the
fastest growing areas in IT across the globe.our vision is
to create a platform,where trainees/students are able to
learn different features of technologies to secure a
better position in IT industry or to improve their careers.

4
History of Python-

Python was developed in 1980 by Guido van Rostrum at


the National Research Institute for Mathematics and
Computer Science in the Netherlands as a successor of
ABC language capable of exception handling and
interfacing.Python features a dynamic type system and
automatic memory management. It supports multiple
programming paradigms, including object-oriented,
imperative, functional and procedural, and has a large
comprehensive standard library.

5
Van Rossum picked the name Python for the new
language from a TV show, Monty Python’s Flying Circus.

In December 1989 the creator developed the 1st python


interpreter as a hobby and then on 16 October 2000,
Python 2.0 was released with many new features.

…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 computer, 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 choose Python as a working title for the
project, being in a slightly irreverent mood(and a big fan
of Monty Python’s Flying Circus)

6
7
8
why Python?

The language’s core philosophy is summarize in the


document The Zen of Python(PEP 20),which includes
aphorisms such as….

1) Beautiful is better than ugly


2) Simple is better than complex
3) Complex is better than Complicated
4) Readability counts
5) Explicit is better than implicit

9
Characteristics of Python

Interpreted Language: Python is processed at run time


by Python Interpreter.
 Easy to read: Python source-code is clearly defined
and visible to the eyes.
 Portable:Python codes can be run on a wide varietyu
of hardware platforms having the same interface.
 Extendable:Users can add low-level modules to
Python Interpreter.
 Scalabe:Python provides an improved structure for
supporting large programs than shell-script.
 Object-Oriented Programming:It supports
object-oriented features an techniques of
programming.
 Interactive Programming Language:Users can interact
with the python interpreter directly for writing
programs.
 Easy Language:Python is easy to learn language
especially for beginners.
 Straight Forward Syntax: The formation of Python
syntax is simple and straightforward which makes it
possible.

10
DATA STRUCTURES IN PYTHON-

LISTS-

 Ordered collection of data.


 Supports similar slicing and indexing functionalities as
in the case of strings.
 They are mutubale.
 Advantage of a list over a conventional array

 Lists have no size or type constraints(no settings


restrictions beforehand).
 They can coantain different object types.

11
 We can delete elements from a list by using Del
list_name[index_val]

 Example

 my_list=[‘one’,’two’,’three’,4,5]
 Len(my_list) would output 5

Dictionary-

 Lists are sequences but the dictionary are


mappings.
 They are mappings between a unique key
and a value pair.
 These mappings may not retain order.
 Constructing a dictionary
 Nesting Dictionaries
 Basic dictionary Methods

12
Basic Syntax
 d={} empty dictionary will be generated and assign
keys and values to it,like d[‘animal]=’Dog’
Declaration of dictionary

 d={‘K1’:’V1’, ‘K2’:’V2’}
 d[‘K1’] outputs ‘V1’

13
Tuples-

 Immutable in nature,I.e they cannot be

changed.

 No type restriction.
 Indexing and slicing everything’s same like
that in strings and lists.
 Constructing tuples.
 Basic tuples methods.
 Immutability.
When to use tuples?
 We can use tuples to present things that
shouldn’t change,such as days of the
week,or dates on a calendar, etc.

Examples of tuples

14
Tuple1=(0,1,2,3)
Tuple2=(‘python’,’geek’)
Print(tuple1+tuple2)
Output:
(0,1,2,3,’python’,’geek’)

Sets-

 A set contains unique and unordered


elements and we can construct them by
using a set{} function.
 Convert a list into set.
 L=[1,2,3,4,6,7,8,9]
 K=set[L]
 K becomes [1,2,3,4,6,7,8,9]
Basic Syntax

15
 X=set()
 X.add(1)
 X={1}
 X.add(1)
 This would make no change in x nowFile
Handling in Python- Python,this concept
here is also easy and short.Python treats
file differently as text or binary and this is
important.Each line of code includes a
sequence of charcaters, called EOL or End
Of Line Characters like comma{,} or newline
character.It ends the current line and tells
the interpreter a new open has begun.Let’s
start with Reading and Writing files.

We can use open()function in Python to open


a file in read or write mode.As explained
above,open() will return a file object.To
return a file object we use open{} function
along with two arguments,that accepts file

16
name and the mode,whether to read or
write.So,the syntax
being:open(filename,mode).There are three
kinds of mode,that Python provides and how
the files can be opened.

 “r” for reading.


 “w” for writing.
 “a” for appending.
 “r+” for reading and writing

17
18
19
20
21
Use of NumPy-

NumPy is a Python package.It stands for


‘Numerical Python’.It is a library consisting of
multidimensionalarray objects and a
collection of routines for processing of array.

NUMERIC- The ancestor of NumPy, was


developed by Jim Hungunin.Another package
Numarray was also developed,having some
additional functionaries 2005,Travis Oliphant
created NumPy pacakage by incorporating the

22
features of Numarray into Numeric
package.There are many contributors to this
open source project.

Operations using NumPy-

Using NumPy, a developer can perform the


following operations-
 Mathematical and logical operations on
arrays.
 Fourier transformation can be possible.

Conclusion:I believe that the trail has

shown conclusively that it has it both

possible and desirable to use Python as the

principal teaching language.

23
 It is free (as in both cost and source code)
 It is trivial to install on a Window PC
allowing students to take their interest
further.For many the hurdles of installing a
ascal or C compiler on a Windows machine
Is either too expensive or too complicated.

 It is a flexible tool used that allows both the


teaching of traditional procedural
programming and modern OOP.
 It can be used to teach a large number of
Transferable skills.

 It is real-world programming language that


can be used in academia and the
commercial world.
fers the possibility of more rapid student
development allowing the course to be made
more challenging and varied

24
 And most importantly,its clean syntax
offers increased understanding and
enjoyment for the 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.

25

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy