Window 10 Activation
Window 10 Activation
Report on
“Python”
Submitted by:
SANYAM GUJRAL(1813310175)
SUBMITTED BY::
GREATER NOIDA
1
SUBMIITED TO: NIET COLLEGE
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-
3
Mission
4
History of Python-
5
Van Rossum picked the name Python for the new
language from a TV show, Monty Python’s Flying Circus.
6
7
8
why Python?
9
Characteristics of Python
10
DATA STRUCTURES IN PYTHON-
LISTS-
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-
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-
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-
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.
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.
17
18
19
20
21
Use of NumPy-
22
features of Numarray into Numeric
package.There are many contributors to this
open source project.
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.
24
And most importantly,its clean syntax
offers increased understanding and
enjoyment for the students.
25