You are on page 1of 25

Nbe

Helloorld
I p:
e: <dye'Mod'> BintS)
subtra chon "oord
>7 d=a-b

HELLO'
'Hoat' > Slawd ()
I#Astng Sub shing
>>e=a*b

>)4 a ** 2

>779
li

fuk-|'ple'. 'onnge","harana,
pinl (ype (uik)
pint (Jen(fruik
futs (t:3]

t apprsirg an tem toa bt


fuib.opperd(poon)
pint (Auit) om Jit
t Remeving on tern
frib.serove ('rongo)
print(Arat) to ait
*hetirg an tern
fut.inet(4,'rongo)
[covot, 'onien,brmoto
potato,
eqetables -
eotoleseuith+ vegetatles
pint(eatable)
Yied datatiges
mized(daBa",4,5-61
Aype(mixed)
psint(ype(mixcd(o1)
print (bype mixed[a))
pint(tupe rived(-1)
4 To charqe ndiidual ttems e ist dut can be nesdd
vested - (Prut, wactable]
mied [tniAedtiJt 3 paint (reted)
point (mixed)
s ('rk,'onyo,"bor
(ik )
io(kuaik)

>>vegade bleu ("tado 'Ganot,'onio',"adsh")


eadablu
itabls
Dichisnais Brnch:
-S"am'Heha'ds43,
>7skident
chudent
yr(shudnt)

a drhresy an be auothu dchmay


717 'Bsmch':'esc?
$ : shdeot,"2':stuant)?
Surt

elit mbu 0:
Riot ("zew")
else
int ('Negahe nam)
> oat (b) fot("as tutnt is lon
Caluted)
Nestd i shknt
Nad
iy(umb u )
'banana 1Numbu =0:
mangu,"bana'] Rint ("umba i's o)
ee
frnt"Wumhu is leite)
Ustayi shknnt ele
buleu el, sbtement
num bu =ID
14 tv SandS ando' o
Piot(Num is psite)
Nok
font eNen um bus upto l6D
chanye unb -s and check.
-eln while i<|00.
i} i 2 z =0 :
Numbu lo

Pant (' pitive nun')


else:
num =tot Gput ("entua num') )
totlt numbr
umbu -in (iogut ('ente anum
int ('ofel
Yong
numbyanget4)
bak
Piot)
olp o|2 3
Yalge
Bange (shd stp,step)
for kon shot,step ae eptiad
"sav, Pyhen,
items
(nunbey -anyclt)
Riot(lxt Crumbeu))

rnngel-4)
Piod (Usttnumbeu)

Rare with statand athpaurond


h
Sumbes=Jange (9, s)
tind (lst (numbesj)
disik I2,3, 4] (sis not
fo i to | ole:-
PiotCi) Sambey- Tnge (2,4)
else :
olp:--2,, 12,3]
scgune lo (
forn (tol0
m bes = angeC4,2)
num bes
( 2num
rint listoumbes))
a
3

Dnhss yec (4, ,-)


t4,3 2,o]

s, )
Jange (o,S, is Saay
Rame

nambes nge (o )
+'7)

lrotir) )

des adt nunk (y):


Sem )
Pint "sun
("ertu
+rp')
Riot (ikm)
3nmby
Gyeatst
1-(gt( tu ))
Prot (itn)
ditogl and 1 ?
Pant "1is patu')
shudenb
ele:
: flramd;'sst, 'gde'
4ctudunt{ranne isps, d:32,

du avgt e (esank): y=y*


y720

Contw
aVgaYs_93ade
xkuaty allaot

dchonay
det
fo hlue in dataiten ():

itro(Fistname Sss, Lashame 'abe', Ase =2o beta=f)


'into(ful hame,=, RRR,Ltum
Hodulu
ard maagrel
is a fyhern

in Etothfah

defml Py
Chudenh):
def avggmd
SmO0
key in shudent:
fo
Sum Sum +shdt [keJTgradJ
avge = Sum luntshdnt)
(shdh) shdnh')
Shr(uo
Priod ("he ase'+
shudot.
dor Keyin
) [key'ranJ)
shdunt
Pint ("Name!"+

:fhane' '
:nend:sss 'ayode:4st
imort det_meotubs :qs?,
fmde
shidnt= '3':Slramé 'zz,
'nde:9s,
des oedales piod conds (chdant)

4 19,23,
A poekay u a Candihen dhal Ganhin uig enchoy,

and madalas, Cade Can

ckage mod uce


fack ng
game

Sabpocknye
Sound Sub-ctag sub-pac kaye)
Levd.
ioit-B

tod-P1

mst Gaotein a jle namad


Nofe

dinchy

iport Gane tevd.shot


eJ-

Ganelud std sclet difatca)


e-
Lwd
- fon Game-lwd ieyot shyt
whn an caaphay olus,

su! =ntumato(derominatr
Prot (sesul#)
Denoni oath Gnnot be o.")
Pio Emor: be o Rt wd ty
Canvo
Op: Enoh : Deroninntb
nunath<denntt, s
s
and éncept
hande Cxaphio, e Gde pult in y blo sk
and, hen oCus,j swt, Code

dhen the pan is Ayotochcally the

plogam, haweee t changs th


a uhor g the
bdien esies ad uapkay
Fna
,ZoDrvsisn

ohich chang
o ae bhen Keme intual wenb beu
>Oun(rm, modi) fuhow
-9Med an be nd ) nih (w) nd (a), ed doni te
Nco-binaty b), Oyite
Limgt)

32 Contnt fe ad ()
Bint (onld)
Python tuyronh
tnc luding odroniatd and stucherd Pogami
Pythor isiS enV

bine by Cne
('bb.tat,)

Line -)?

i'ne-2?

4, 19,23
intKed )
( )
li'nu:
Bind bne
a cuthin nurn yes

> fe- diad (io)


Pythen sop'
paitom

clscc)

Chl tet')
o)
> > hp Sek (lo,
fpYeadc1o)
>> lonknt
Ports moY
dat

shline("m- 9.d.%j')
Date': b4-2413 sthftime %A)

then dat (so3, ,2)


>>

pabng hbme
manpabbig
Enmanpat
S>7inporL tone
>77 note b e t n )

Piot (tire brlhelnastine (rotme))) shucd bine


(ine. beulhae O%a dion
aicdime
777find ( t'me
24-cheude shi
A

at h cnd the te.

ahd agamen

1Sck(20) (

Pio (1-tell s)

4clese fialsetietade
?fut wnthn in
(

o k bom back usad


to letleu
Brwd.
askel h Pinl
indes3. lut
bsti's al pcnt
slich is not

else clauk
jBgya tsy oth numbey nmua t lD
Dennlot

donomesat

wn
n m) Pint (usult)
Piotot an Bint( Ais:Duasmiet
= Yrum Cannot be zeo)
else?
Pini (heeuscad)
P Gotu a num 3 Bint

entu aobeanno
Esso1: Dromi

rintKed )
tnntatig Gld aio
Give
Bhavioug Bhas *
an to ame
an
mthud
cbjeed An ’
irutre ar is
iscas 4’
tike
a
clas. that 9 Can
be
acasd
he
ehoty bywed and bey mim dah
emba
Pioy fenehoy bummard nchng
holA whih
membus dda aury rafs clas he ’
a hee Cypese
ardcaaye-dfired
Shuctula
claotna
me
Cost and Dmoded
the ckba 0
hat Cau num
adlwbty bas ndeutr to
nd
g
obyt and cass
allay mean a
aant
pane C"HymakeSnd(s): det Sss,
sjset ane
14): info det
se Colo
d) det.-init.-
: clas
Pesqck Brke'
!C"Aounfuin
) Bike bikel=
--loit-(Be,
): namename Sctnae det
Bk: class
Grshuchu
das He
es, igideo mlue iniklze Qastucty
to aCye
naae the o
unchen kaurdn coastwco
Gas : Pydhan
chidy
(nydh
o
nd boglh,) cuing
o02 Cleye
D:
2
engye clas
=o id
hoam
2:
wntea
clas
ko Pant(Caa.ddodel
is Cjt atb)
Hodli's Cal) Call
y City atthi)
lsiot("ttadel
tun(sclk): lef
lt.Model is
slacs au= Cost
alb1)
allbl'cit" Model
Car class
Cal
Cal
Glat/h
buley
3
obycdt clanes
and
baky)
oAnn): chs
(e): Speak des
Anine! Clas
methed(topo) objy
(io)mefhed obj.my
t Hethod
s
2)
(t,5, Baud else
(o,S) focuct
Nan)? ',ay2 ay mtod
(el4, Hyceo: det
my
:*b*cpodat P=a det clas
Ce) Priod
ny Can but
lafest he we
aith Bdllem ’
ts
nethed
aeibad may thatsaloay
ho
ovuloadaf alet ae
mehod Galled sthsAt and ahoi
fenlnhes but ne.nane karne hehave nfhat
pygo: detclan
iobtno
hs allsos cad dyut

clas

Gole
Clas Base Clas:
chs Dedeaa(Bakclau):
laole
clas folal:
dedeat(Ga4):

clas pog(Animel):
(anional)
det digly(s4): self-name)
nane s

labhadoa.eafl)
bbiados. dgly )

Pu9
dhat myobj.
bak)
thod.ovakdig
J Do
(Pan) cild clsdef
Jealende
aa pind C)lat
Aala
onhad mydef ovidonmeltd Anira
faertt: das claa Paunt
the medhed
Subclas and
Aeter
hyp sam
nehed abhen ’
Ron s
the Sabelas a y
ne rame
po9

(0T:

y to <oite 9oud dota

fiat

Enp-aie t
-

lopont ison
dabi': ",
SSS
L'enp. ame daa jsen. bad
3 for i in dah[en
name

Z72
fcleey
3
3
jcon Pythonl.Py
tmed jcon
:"Bob"
J J stig

y-jcco. loodul stig)


Ptnt (TsON stng=y)
gust inpad usloqun
fiery pll:b.

all the dahstuctas

ainy Pintc0 is. PintC)


bedoen Paint) d
Difoune
--dia, rdict, --del.
e2it-
cler,leh, Tesd, adabl, getode, ek

You might also like