Professional Documents
Culture Documents
CSC Obs
CSC Obs
() 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])
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
Lol,2,3,5,8, 13,2!,34 J
C> a+b
b =c
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 :
bi = 0putl"Enr Numher")
pe ulbin-t) ; dec =o
For i u bin
i! i not in "o1'! :
pant( "Not a binsuy A)
"))
dec = n(iputl"Etr ne
wLmbus ")
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
)
paint)
N=
pint )
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
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:
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