Prem Ass 2 Python
Prem Ass 2 Python
types rn Pthh
wbat is the diffesence betw eern mutabe and homutable
"23s" to an
pronde exCroples of each. nvert the stg
foleger and a float.
Muiable types -
cTeahon
They are dcfnedas they Can be modifted of fer
eg Ist,d rct, set.
Drer
pamtci)
etun Fase
n yange C23 in tCn *05)+4):
o0r 1
bieglk 2
pint Ci) progGmerdla
else:
Pint Ch loop erclecd Tormally")
phtc" 0q1am ended")
example) tbe ese block IS ot exauted b QUse the (op
IN abNe executed.
ehds wtJh a brecalc statemn,the ese
bloc k is
for ? in TangeC5):
tntco
e lse:
pofn tc"loop ended Tena 4)
ptnt C"pogiam ended') loopenoec
ProgYcmendaf
frbona cc icn-2)
Tetn ftbonaccl cn-D+
D-tems 5
for 1in Tonge Cn-terms):
macct(),end-^ ")
pint Cibo
ttoutput: o