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

Advance Python

Uploaded by

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

Advance Python

Uploaded by

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

UNIT-S Chapten- Ndvante pythen

tnlioditlen to
pupoe bbjed olented
leaun leuel

Desaned by Guldo yan Rossum


’ Released Pn 99)
show
Named oto Cmus.
" Menty ydhen'y

basy to uead, wste Pouotablifry and


lexan and
Matat Compubty
shy
PytRon fxtendt able
A eT.

Dotabases
gntenatlue Qnd Scalable
mode
’ Web ond tntesunet
denlopmet
Nesktop and GuI

Ratabase Access

Busaes agplatteu
and Nomele
Calulatlen

’ Game deuelement nd
3D
Basles
Pyihen
Chaatee
Set
fuenn
Alphabs A102
Spelal Synmbel
$%,h,&, *
!
Spaveban, ab y
Cnteu Key.
AsCTT 0
UNICODE

What
Sns tuctons wlten n a
SOyte Code and au Xuted
by a pythen frtepoutei
Catled saterment

Staleents
Mutie
Statemets
Stdteentt
Eh statement Jun con be
tuglten fo new etended Dve Moe than, t
Slaternet tn eue
mullple Lines by
b, 1 3 ;
ute t to glue poo pes
Sanned by pnthen e-pmments unde tondina o ode fn
Statementsl

Sthgle
Ceynentt
Cemments
Mote lres
’ Stats wth
’ Staots
double or taple quotes.
-Hhe .

Rejwond') ’ Resewed by python speeas puoposes


not QlOwed to bebe
to Used as

9etun ete.
Ex fals, elf mapot, ytuld
Rule fo naming
uset defined " (an haue
ames d Vovkables oescase, upprease,
nmbeis,
undensose)
No speal Chaates.
"Should not be ythen
key word.
(ontanen that ton
’ ust ke
Vantate hetd any ypt o odata

to
USes
ougnmud opeoator f)
Name
gun
Memosyloatlen.

Name Value

Follous utes Can be

sthg bcolean ete.

Values

b= J0.S
helo {Ofund u) ue eaten key
Method 9:
Same Send colen

Method 3 :
value to
vaatables
oJPotrtFlaair
st-

Bx:tS.5

Compl
3+2 None|
NULL or
Speid
typedodo

Sgle
TiputinmeDoti
utiine
quote chaacttn'"
Caraek"!

(Oangaste Helororco
Valie Types
|DoBa
,"Ne
Retuinthen
An
Boelean
o,20j30)
t(
J

BnmualleHegnus

Dupliae
·No
"Unorde
Als Data

Cpanbihtbn
Value
Key:
Unerd,
Chañgeabd

tauorndbguith Unos
Dat

vole masirg
Mathematiea
(Opna used to cdo puaon -Logte
kalatonal
Agthemaic Relahonn) opnalo peratou
Aulqmunt
paata
[bo malhemaial] CAy a malue ABaio1mant
DpualoxA
paliond epaatornBth
Pantom an Cpuat
Net equal to AND rbue +atNign a ne
Subitact
quatr thau OR VX Tou Klln " vaue to the
> a t than NOT Xx Fase
Nna
+ Add thes As
/. Remai-ds
* * Eponet
<Les than
/ Mulliy
Didk

kanindy
To Bolve
an hpmi on Expnenta
eslhon, lows a cetain qunue that, is
2 **
3* / Aithemalic

not, an, r Relation


Iypes Convenaion
angthn
to avoid Automatstolky tonuse
Data lango
totput
AKA Typ costiy bause. Rryoem Conge
Cenneat thu data pe oy wing int C), {batl), Shrl), boel ?)
int(Due) boel Co)
float (i2)ind (is3) shi)
|s 1 false
disptay an Butput on hu
heprd functon ? pand C) funton ia uicol to end=end)

Ubesd to take
take an
an frput fon he us
The nputC) funcion : used
input (<paongt that wok, os for the

NË= fat (inpus ("Enden tut numbn "))


N, = (at (ineut ("nten slond mumbn
Sum = NtN
Pat (Sum)

onditiona fotemsnt
’ wsed seleufng the blok
tatemeis to be exeuted based a

Coudllen Condier
ondihoyH Satmnt o Jru

Stalement
lse Cenditon
Conditon
ytey (): Statement
stakmaut
else:
Staleent
elle

Syntay. (eonatfon): T
<(ndtn siakemat
tatement
el; (tonallern) :
Stalemeud

Ctalemnt

|alemanb

Statement

ltatemets

Jhe
pooces astrutfou
based tstela fs caled a
Fos loop
fos <to undee
ondit
Statemn
valabte> In sequeneece >:
Fale
Body

<statement > nge stant, dit, step):


Loop
Repeats
Condltpn
a Sel
Jong
Toue
Syntar fale
Wle < Cendilen>:
Stateet

Kajal
haua
1 63
| 00
71)

You might also like