You are on page 1of 8

Fytlusu Proqvauwning

Asignmuut- |
usty Pyttueu io called as dynamie awd stroug uyy
Qi
Q: Discus
yred lauage ?
uat uovu abtes d'o uae a ype aud

tyre matevs ustuew potormung oponaticus


a uani abte
u uauabtes

is detenwimd ouy duug


is botu a s
strougly yped aud aa dynauically
typed laguage
Te Pytuou taterpreter das type chuckiug euly as code
a uaiauble is alloweo b
Sr its utehu
Q2. How pas statewent s diut te commeut ?
tvo2 h pyda ou pam statewwt is a wuel stateut
But He di euce betweu pao aud cowwt is hat cowit
s Hhat coweueut is ignored hy te iute preter utneas
tqnored.
Cowwwt is mot ee uted but p tateeut is eeewted
but uoiug hoppewo
Q3. at uo diyute betweeu Pytaou Amays auod i'sts
Ao3. yaou lists
Cole cts itews uliple type " Colect iteus Seuwe dat
data types typeo
Uses mOYe memory Uses lex mewY
Fleni hte, easy ho modity Not 4tend ble, diieult lo modi
No nud tor spea7ic tosp o " Jeed a
tsop Cmp
acees cewpenwts
data
sat@5.do
" Auau. By.
IDE'uste An ) Pythou'
(a) s caoes
le In
1DE Pyuou's PYograw roqraw wse g Erpain
tor Pylhou's tadi
duat
hou
we dee Progvauuig
dueloping
helps
rate oljcts
rogras Hae
Prograwng wpactstoppnua
uituout
porible
teusoftwae
packaye Edit App'catieu
Staxttu Proqvaug progY
may duue oud BehauiorTest iwmudiately
dymaue
Stop Appicatiou
Staut u Hey ycle
o open testi by
Prograu BeuuTest o
imply auwng
touls grograu
code
Eait e eutaim
Pythou yele chuge
ug AppicahiouWe prograuan9ydlespytuou o,
t
by prograoag
Cyele ycle is ipot
sotwanetu all.at
it compi
istat auto uat Code witu cud dule aftu yele
hau DE len is
watiuy cousi - ubad Because
? modute elsadiua
ehauges modules
o d tor
Eplain
sts auuasPytueu
uuk
g 6) pauts 64
foroces
u seuen Releadiug IS 4 at steps. tieally
ieallly
slhortortac
tor in as c iu
6 au tus, nun
DLC al
detail. tol
a be time detail
tooes oos ythu
wsed
- amd
,
Some o e ytuou IDEs ae -
R) Py Cuami
dhanm onsts ee due lopeus lo be more procuctue aud
Py
preuides smat suggeoho
reutie ta ko, hene neooes es rodu etiuidy.

Spyden is widaly wsed tor data sueuce wosko . 9t us mooHy


sed o wwate a secue aud suetitee Y m t tor
yton Spydu Python uses Py Ot (Pytuou Pug-in) usuic
adeueloper
Cui) Py Deu i
" Ot ço a entunal pug-in tor ecipse aud isis uwny populan
(iv) DLE -
IDLE is a baie DE maiuy wsed by beginnn leuel due lo
p
duueloped ouy in Pytabn in col aboratisu itu
Thiute Gul toolkit
(u) Visual Studie
9t eubtes dluu spmt tor uisus pattorms aud
uos
its marketplace toY enteuious
Q&. Wite a tor lsop Ht piuts
numbes trou Ob57, wina
Yauge tuu ctieu.
tor Tauge(se);
priut i, emdz ")

QI uuat do yDu
you y opuakor preceduce aud as ou atiu
-iy
Aw. Opoator Preceduce

each openator elatiue ho dhe otn


usln enpren u has to 6y More sperator , we weud to idut
-ity ee Correc sequnce o eLaiate se Speuators . Tu is
because uoult o epremi8u claouges aapeudiug
-ce dance.

Associatuty
"A
sso ciahiuty decido te ordn in ust'te le perators wina
Soue precediuce e eeCuted.
MBot due peuators in Pythou hae leyt o ngut souati
-uity
PRECEDENCE OF 0PERATORS

3.

is not
8 not n
4. not
aud

. wite ssrt otes u -


(o Prograui y cyee to Pylan
(0) Type Couiou in Pytusu
Auo & U) ALready dou n Q4 "

ype cou wesieu is tue process couetug


tto cmo
data type
datatype
l. Impicit upe Couwnou
2
Enplicity Type lowussiou
Enpiut is mawual ype caeanoa
Ipli it is auto watic ype couunoo
wumory is mauaged in Pythou? Explain PeP8. wnte
woYds (n a stiug ?

Auo 4 Memoy lau age meut n Pytuou


Memory wmauagenut in Pytabu iuvales a pniuafe heap
all Pythsu oojects ou d oata structws
ceutainiug
Hais priuete eap is euswd iutenally
by tle pydion memory maaget:
has dileut coupouuts
which deal witu uavius dy naie Storage mawMaaemet
aspects, tike slaniug, segeutaieu , preallocahiou or
At cacaing
u lowest leuel) a
in hu prmuate uap tor
all Pytbu - ulated data by interacthuy wiu sorts
Hu
storing
" On top e raw
wwemory
mewmory alocator, sea Sject peukc
alloeators ope ce oud iuplemet
dis hinct wmory mamag emt hap
poliees adapted otee
peuliaistses eeey otject type.
PeP & -
A PeP uo a dungn docunut
prou diug itomatiou o He
ds eniting
oY eiTonment
a nw teatwe for
Tythor
Te pep staoule preude a couoise tecuieal peik cah'u
64 te te atwce
actuall an aotouy lot stado tor pytu au euhame
t
ment oroposal.
feP 8 is Pytaou 's styte quu de. I d a
set rules tor houw
tormat u Putu u Code ob ma
umize its adaiuty.
Prograu Voo pmiut leugila woY do

duf pnut Wordo (s):


# split e string n-"Ikis is Pytoulauguag
Sput () #spüttiug
# it itenate iuin wordo a stma
striug Sz n- spit l" )
tox woYd in S:
s len i ) . 2 2 =0
leulword)/. 2 == iuti)
priut (word) Output
Tuis

Pyuou

Sio. How Py tthom is iuteHreted 2 ute at ae too lo Wat


lauguage
hels b
ud bug 5YYpuyorm stat'e aualyis ? suat ytuon
decoyators?
Awolo " An luteprete is a kud o roqau at excutes
etteu progra
ushn we omte Pytuon pro qrao It couts sowce Codde
wnten y Hhe daue lopen iwto iutmudi ate lauguage
ustich is again ty aus lated iuto Hu atiuImaui
Laug uaqe tat is eucwtec.
Pythou is processed at mmhnu by u iutenpretoy.
code is Saud in computen sng py le
&ownCe Code is
compiled into Pytou byte code
proces a t le ih ou
u eteulhou pye' is
uated.
The i4ual maeuue eut es Hue pyc etewi tile.
Beiug aa runtime eugi Py eubn ,
Py oaueker aud Pyiut stahic aualyis tools Wat
kelp efind bugsin Pgtluou
Yycaecken is au speus ouee bol for stotic aualyns a t dtec
Hue bug trou sonte code aud uwavns abeut e style ad

ylint iglaly cou4iqurabte aud it acs uke speial prog Yo


o cotsl waniugs aud
- hou ite Py i t is aloo au opeu
soee tool tor staie code
aMalyais t looko tor programmuwg euos
codiug staudand tcecko Weuleugta o eaola pro
e t cck tu uauable ames g7awi
projet
Style t can easo be wsed a st owdal
rograa,
it ato iuteqratea wi Pyihou iDEs suela as
Pychanm
Spydu, Elipse aud Topyter.
PTHON DECORATORS
De coY ators
wwy pouotel aud uetu ool in Pytaou
Since it allous
modiby e behauisut
DecoratorS all guw
uo b wap amotur fumchieu
erteud te beau
He wraped tumchou ,
petmauwty modibyiug it. iout

froduce
Pyluon?
z 1,2, 3 # S|
a, b z 4, 6,6 ts2

(ist a He elets
statenuts roduce
Py uon)
4,3,6 #S2
(12:
L'12', wto', 954)

bye
Enp lain wy s
progTam eurete an Gr .
Ano i2 In tirst i e c is decdaed o
atsiay But in
w oli
2-D anay tor modijicati ou
didn't eun eusts .
Type EvNOY str! cject does
Aoes mot
uot upport iteun asoiq nma

You might also like