0% found this document useful (0 votes)
18 views10 pages

Python Programming File

Uploaded by

sy2526462
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views10 pages

Python Programming File

Uploaded by

sy2526462
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Paganam -

WAP to add 0 numbend


aint(inut ("Enton fut numbe))
bantinpus ("Enton >cond numben:"))
um atb
pint ("6u, Sum)

Pogn am 2- Pnogsnam do ind marimum numbnbet seen


t u numbe

a int (input (" Enle dvut rumben")


bnt(iput( Enl n õccond numbtn")
ia>b
pnint Ca, i gnead than b)
eli
pnint fb, d gneof en than', o')
ele
pnint (oh one egual)

Pnognam 3- WAP do ind actanias o a


numben
de at (n):
Ch 0 an n= ) :
etuon
else
elwn h* foct (n-1)
pint (fact (n))
Outpul
Enten irsnumbo 2
nu m ben
S(ond
Enten
SumS

Gudpt-2
Enten Jhew u t numben 12
Enten he e cond numben 34

34 is gneaten than 12

Outpt-
ad 120
Pnogn am 4- WAP on Calculad e
imple Intlereat
de S (,n,})
P intinpus (" Entn P")
& ind(inpod (" Enden ) )
inpud Cinpu ("Enttn )
S (P4 5 a) /loo
ind (The simgle irien,SI)
u n n ST

9n0am S- Atol Caltd ae Camyfound itenat.


le Cormp irnleneat ( ,7,4):

fen3 CPo /100, 4))


CT Amd - P
indCompounB it tnest dy )

709n am6- nognmo ind postenh.


de atenn (h)

0 in ng (n)
Paind " ,end"")
Pint("" it i))
4 l 325
adten h)
X

*
am
-

3:
agnam doind b o nacei SeguenCe.
Pnogn
n e n m) = i n (input (" Flos mony d enns

n , n2 0,1
CoumO
i n nsk = 0.

pnin ( pleaae enl en a posihve numben")


eli Benm=1'
Pi tibonat equente updo', n1onm,"
nin tn 1)

ese
pnin Fibonarci Segue te : ")

Lohile Count<nienns
pnin (n )
nth n+h2
n2

CGant

anea oo CiIe.
3 W toänd
Ynognam
inpor mah
de a Ca ( ) ,

eo
math.Pi* paLg ( )
print Asea ontde is.c
e

Oudpu-
:
Hots many tenm)

Fibonacci dequene

Ouhud-
Enlen he Jadius o unle: 3

nka 23.1+33 3
9- WAP to
numi
nd iply too numbend
int input ("Enttn u humbe)
num 2 int (input ["Enton Ccand nambn")
num ¥ num 2
pin The neulF ,
mal
nogam lo - WAP o canvent time on mas 1n hon

do 24 houn tonna.
de Convent 24 (n)'. "

inl2:) " Aand an2)- "n


netunn"oo" tnl(2:-2)
el tn [-2:] ="AM"

ei snlt-2:) =" PH'and stnd1"1n

else
chon (in (int (tn1:23 +12)+ sb10:8]
poist CCo nuert 2"69: 04:4S P "))

nagnar 1 WAP do dind &uhanalk 6 nunbe


a int (angut ("Enten iat ho.")
b int inpt ("Cnten ccan d no.")
Sub a -b
pint The e D,.",Sub
N

5
V

S
9

3
aWte
no9 nam3- Whito
a
pnognan do
7a. ponm
pon Bede chon

eeckion 0»d Can)


Foniin aarge (len
minid =' Cam)
Fon an
ange Citl,Den (ann) )
o l min = sd>
annli):
anni)
ann t, anlminád -arninin- id), ann li)
an=O
sizc evas Cuinput (" Endcn
=

Fon in nang c (o, i zc


Size annay ")

apend (int inpud (" Enten onay elkemer ))


pint 9y betone onhing )
pint Cann)
bechion SntCann
print ( Asnay a ten B0nhng")
pin Casn)

You might also like