You are on page 1of 15

3 Wit to accpt

aud pint the palawitg 6f mbe

() Diaply
Pevu th ubeu palindDme
()
wkthe it iú a and
Cheee put
bctween the
dfuence
(v) Find
last
Wput"Ent a ber")
rev

Untli)

a- int(num[o]) - nelum-i])

puntl "pwerre bf the umber'", rew)

paliadrome)
Dle
punt m, "is not a palindene')
n
4 pagraw to accept
cnt ot
and
Pat the um a

ber ))
t (uput"Entr N = ne Sp
Dc pc

Lgen) a nber"))
um = Nt 0Put ("ENt

Se = Se t num

puut C)
ec)
iit (" 0dd caunt
Ae)
puint " Sun odd E so); Print ("sum positine
SP)
pC t =|
prtnt (" pocitise cownt-r
Sn t = num

prit'ugatise cout }n
5.
Nit
puagra to acupt
and aag of the
b

elINputl" ENtu a umber")


otal
:

un = it (nputl "Extu a bur ")


total = tota + Num

pnt "Tota total)


total ll n)
pagrau to gauste th
N tu

Lol,2,3,5,8, 13,2!,34 J

a, b = - ;print| "Fibo nac eii Suies:")

C> a+b

b =c

pnt Cct, nd " ")


u to aceyt studnt wares
them.
and a l t aMOg

ny studntr ")
kay
i t (inputl"Entu

wtlinput("Entu wt!"))
mare

mark
Mae Znin

Mark

min)
Wit a
to coet
toMt deal ad vik -verta
biy to dau

whilu ont :

pune("|: Bikauy to Decal ln2: Deia to


Biwg ")
ch a int(iput'Enk chace"))

bi = 0putl"Enr Numher")
pe ulbin-t) ; dec =o
For i u bin
i! i not in "o1'! :
pant( "Not a binsuy A)

dec= de ct intli) * 2**P


pp
print(bin, "equialet deia = dee)

"))
dec = n(iputl"Etr ne

bin = bint stla)


dec > dec ll

bin = bin [::-1]


(tunP, "iKäy equvalnt -", bin )
print
e
print ("Iyed cdce
iput(" Do yo y)
waut to Contu?
DNt
Cont
acupt uube wtl o'
t
put
)
pue ubw
) No
Patindrome wwbu

wLmbus ")

dhe utuputl 'Eutu ywcheice")


rev

Ct = l

suml/c)
:

MM 2
ntliqutt

whil =o

intlrew):

lit c z 4 :

C3 z C3 +|

")
e
puiut ("lw alid chave")
|0 to puat
O Numie Pattun
haatter Pattrw
| 2.
|2 3
|2 3 4
wbc d

punt chaeter pattanu ")


ch iput ("Eeu ckoia ")

)
paint)

N=

pint )

puCnt lyaid Claiay


0
| 3
2 4 6

J2 I4 J6
10
&

i 2 == o
:

e= et 2
printt)
e
0N gli)
puat (oddi ud-")
odd +-2
pixtt)
Wut a paga to acupt a line and
a veue
2.
DuNt the wu tht beyu wit

0yutl" Ertu a lie")


line

C= 0

aieutElOu ":

pinti)

witha vauel")
"words byin
punt c,
3
it a MLM diew puopam to aceap t
line ad de the pllauig
3 ttu weds
bouercase ad vice-eerta
coneit to
diyt1 in the in
swm
dapy stusg to
titlecye.
6) cOnet
2: T6 caut .
cheek A n3 Vuals in to
pint " : To cOnet
2 uttr words
to titlieue)
o
In 5:
5 convet stug
Hdgt!
chóica")
"Eitr
inttigutl
h:
i! ch ==|

s :"aiouAEOU:
Ler i in

Ct=|
VOwe: ,c)
print("No

ssplit) ; c 20

L=
is lni) z*3

(t=0| )
3luttr worde:
puint("No !
4 i is pprl):
):
lit iSlwer

ele:

put ("lonuet tiy :,4)

put m diglti sum)


:

L= soütt)
Lori in L:

"Ivalid choice)
pintl
to piat/sulne
H Wit

n Aaybi, t) :
er i
(HJ
SwM =suMt
prink(swm)
iik liput"ENtr o4))
puat
MaLunue-4, Lluur))
wppur-", uupper), "laWletr lenes
punt "Nthu
L: ulart),
"INauaghaie, Lis alaum ))
puint"First ch LCo], "InLat ch , ],"n Er eapt
ut d, LU:])

"tuhat,:2])

stip)
Lspliklay)
punt "Putitn
"tapikalizey Lcapituliza)
pitt (
Lstutlwitl 4("H)
puint tuts witt
Ludit"u')
piat("Edi icth

You might also like