Date.
Page No.
INTRODU CTION To Py ThoN
What the baaic dtterene bekw een a compiler and inttprter )
ARyton is ooth compiler and interpreter b8sCd langwge Conmpir
he cks the sowne lode Cuwnitny pmg rammerO eport yemon:
it. Once al the emors are fixed thanit compiles the scipt into an
exeutale codo caled hyte code tat lurun by tae py thoh interpreger Th
interpoter che s the code one in ota time at a time an exe.
What n nAtanty If still, anyuntime error in ncourberd inon
ine Phepgíam halks ana the cmor repcrted 40 the deelapur Pytasn
proamia eMechiked hy the inkerpraelue by-linN
Q2-wat is the diferrence b<w. (o0 an loo" 2Explain
Ano Any value cndosed in quotea in Ryhonis onicored as a stma: So 00
iaan ineqr typeolue on wlich ani thembe opuabor (anbc
parfomed whule "IO0'"à actrng on which anitnehic can be dDng
Q3Explain heimportance of comnents with asmaA eKOYpl
Ans Communts e a way to downent he scipt or put exclendary rumarts
your script Ay ine in Pynen cade thak begina voith t signia
Forexample : #llouing sriptdiaploys agreing
comment(precedad by F
sign) ad seeond ine iaa multi uno coMm en Losd un "arl"
Date. Page No. ....
Q Wnak in avaniable? What Shoud wt conaider while naming a vaniabe2
AnsA vonoble ià nand ideatifir af pnanam data t Stursy qat on vale
ot atime whene heww value astored in o variable miqnt dhoNge
unne thetmvanalale Avonadeia qien a wwqu name toIdentiy
Speual leters like e,#,l e pnctuation charatn, ari thme
openatrsS an not alloLoed
Qs. Mow ineqrs ae dfterent from peak)
Arsneen n nambers without derina placea while fo as are numbers
aith cdecMal place. Thu uthe On hat fioat rpnAent preae
vaues while nmoeUS may centain appromate vales
Q6. Wheti khe Simi laari hy bekwen Booleans ard inkzqes?
Ao Booleans epreAnt either buo valaes naneytue or faloe Trueu
denoted by i wohile falae by 0. Thia way Booleca ore simÀar to
1Explainwe of ** and l operators with amall enamples.
wwed tD calculate he powur of anwmber
5*2 ill retum 25
Il oprator perfomo cYion Cnd rekun quotiut but discarda the
dacumal plaee in the na ut.
16IlG wis retwm 3 not 3.2
QR WAPin Puthon to caluulate oea of cire
area 3.19RR
twonumbers add hauchart
to tne Drau 4
Losp. 5using
j for of
table pint 4WAP
to
(Tlarp ahie woing lo0 Ito trormbers
m even print toWAP 2
uart. adorta
sa
of perimekr aluckt o WAP
luy whdei 50uing tofrom nmbec od riWAPinaton
nt pto QI:
(uprint
oing numbrs IQ
fist gint Ratto
hen WAPin Qa:
Date