Beruflich Dokumente
Kultur Dokumente
On
At
GLOBAL INSTITUTE OF TECHNOLOGY, JAIPUR
BACHELOR OF TECNOLOGY
In
Submitted to Submitted by
DR. BHAVNA SHARMA OJASVI SAXENA
Submitted by:
Nitesh Kumar
hat We Give you ?
?
een program and scripting language
h python
today
se Python?
IDE
ution
ation
Development
ses python today…
plied in real revenue-generating products by real
ance:
ensive use of Python in its web search system, and
eator.
tt-Packard, Seagate, Qualcomm, and IBM use Python
g.
as an end-user customization tool for its popular GIS
urce)
d installing Python is free and easy Source code is ea
nd tools
world’
on Code Execution
al runtime execution model: source code you type
code, which is then run by the Python Virtual
is automatically compiled, but then it is
nsion is .py
ion is .pyc (compiled python code)
Math
o Code:
15 + 12
>>> print 3 * 12 = 36
>>> print 12 / 3 = 4
>>> print 11 / 3 = 3
>>> print 12.0 / 3.0 = 4.0
>>> print 11.0 / 3.0 = 3.66
he arrows >>> !
Strings
Value:
Hardcastle”
ster
Data Type:
tive data types. Here are the important ones:
True or False.
egers (1 and 2), floats (1.1 and 1.2), fractions
en complex numbers.
es of Unicode characters, e.g. an HTML document.
ys, e.g. a JPEG image file.
quences of values.
immutable sequences of values.
bags of values.
“Whoop!”
42
3.14159
“John”, “Paul”, “George”, “Ringo”]
ll output:
eorge”, “Ringo”]
2 3
rts at zero!
Tuples:
e of immutable Python objects. Tuples are
lists. The differences between tuples and lists are,
e changed unlike lists and tuples use parentheses,
uare brackets.
);
, "d“);
rint "tup2[1:5]: “
[2, 3, 4, 5]
& CONDITIONAL
MENTS
shown conclusively that it is both possible and
on as the principal teaching language: