Python Programs
Python Programs
Date
Bding funcion 2
Code:mpÑnt math
Point(aa)
Bilding Puncion 2
Code import math
Date
List denna
list1 L 2 3 1
point Clisk )
list a-l:0, Jessa31
point Clist o)
paint clist 3)
my_ lish*lo, 20,fessa12.50Emma'
poin mylis)
99
List demo 9
liste llo, 26,'Sessa l2.50,Emma25,5o
y
paint Cmy list Ce :5])
mylist -l5,9 Tor7.50 Emma
pqint Cmylist 41
hay lis CS g.'Torm 7.50 Emma
on item is mylist
boint Citem)
mylisE = CS8,Tom7:50
ylis append 'Emmo
Dorint Cmylist)
mslistappend 95,50,7S
Lpaint Cmy ist)
Lst demo 3
my list S8, Tom7:so
insert my liskinsent t Cas,so,75])
Pege No
Date
Listdemo 3
my liste5,3Tonm50
mylis,insert (2,25)
pintCmylist)
inser ioo m listioserf (3,(25,50,75))
point(mylist)
m i g 2 , h 6 8 , lo l 2T
1ist Co] =2o
pointCmyist)
piat qreater
qxeateN nnbe
pogram to
o tuonumbe
ain(input("Lnte 0:
Code
b=int inpat C Enten b ) )
PCa>b):
paintCais qeaten")
el Se
pint Cbis qt eat en )
aint CioputCEoter a
S eNn
elSe
Print (a is odd")
Pege No.
Date
Raint CinpatCLCntera)
p a i n t a s even")
else
Paint Ca iS odd)
Code tohile
numint inptat ("Entea anumhexc:")
paint squane
) end Ci, paint
nos od 3o o Paint Code
fop') Cuse" Zo4to
numbex mogamfor
odc Q1oitea
mu
1
Do m
1Ktohile
no)) cEntex
nintinpt lo:
Cade
Dumbes
given
pint pragam
to QlCcorite
l) CSumof paint
)c=Cinpat"Eates int -no
mbeg
) ("Eater
nosintCinpet
n Code
Code
totalO Aumbex
o
calceate
he to P15crite
a
Date
No. Pege
Pege No
Date
4
12
Code
Tange CL,G)
paint4 end
Page No
Date
S 3 2
Code
nange Coos,o-D:
CosioTange
pointCiendl
")
Code
bredk
Code
Leapyege
Year = L0t npat Cente vear -
if C year )or Cyear 400)D:
paintCYear i8 leap year
else
point yearis not leap year-)
aut put
Potec year
2o24
2024year geap yer
Page No
Date
from
Code
Paint(" 1 to 1oo even numberi"
fox
Dato
Pathon
to Say hello to
Lonteo progann oÐP tochech iEa SixiagCant en
qLuen name acertaincharaot er
asci Volueof
wAP to prin giueh WAP to qiven chaacter iSvoLe cono
charaot e AP Square ot qisen S nog Using ahle
twointegeg fom USen
wAP ak Q93Colcalae the eum o nwm user enter
and perform Uariaus amith mahoo ero tota=0
operadan wPPTLo paint if can vote gr nok
s
multiplicaan table
9 valued ot inte6 P loy odd no beto lto3o
coAP to colcclate ol torong le @
2coAP to paint ned diuisible by ejthe
elecoici between |tosa
Buildin9 Lunctian ) o loo
Building Puncion Q23 AP to pint N 2onakral numbee
cwAP to perform varias) aperathis
-Qlo is- dema ohileo
to aisen number
oAP to Porint qrreates nmber a to print patesn
3
Numbe
WAP o check numbeis potie
OegHue Zere 4S
gISocheUk Yhe Numis add en even g32 p to p i t ntteD
wAP lae among three nmbe
epl4 To chesk nter Near Dal
To che ck qiuen nunhes iSepos
i poime qum
to prio yeSa
On
hebase cupon giuen manks
Poo No
Dato
33 to prin
wmte a progremto prinhSum
digit otgiuen num bex
di splay numbe 5o toUsing bal.
aik a progra lon Pibonaca Serie
6 Conile a proqcam Facoxia give
31ite a poro gram te eperce int
no