Professional Documents
Culture Documents
oblem_slademeri
il
aie
aceptsasti
e nd
ptnon undiarn ha
LousQACaAe a.
obiective
Dlo stand bosics shrina
nond ond eAshand dasndada kuge a uhon
neions_cA dáags
tha is strin idh exompla
A shanoia punon is
similar ts a chgaadaa-ara
h CC:Slhngg _cAs Sed in ptnon Aa slarino, extlchazacleas
xample aat Hellouok ld').
Sundo x
nckion nam e
Plaosn GODILinux-
lechnslog
Exge0nd P e n C a U C e d t o rL u i m ) _
FOR EDUCATIONAL USE
Jndaram)
om sON ond con ed nSmber a oOAond
chanacts n t
FASS
As
AsI)kgd A doalina in uthon provide aConuiniet
aso.usein.a docomonaton_wth quthan Ma
mdions aSsesa mothads
Ans2Tks epe )ncdion apthon
Con tans onin
Onuuppcos caanacdors ushils
Dcsane0 Jlamino a
oucon chauactors shana Condainr ou
UT
temp.py X
wewpw
d e f c a p ( x ) :
cape
S m a l l = 0 8 .
for x in a:
if x.isupper()
capacap+1
else:
Smallasmall+1
print("Capital Letters:+str(cap))
print("SmalL Letters: "+str(smal1))
UTPUT
Console 1/AX
Dhakane/.spyder-py3)
Enter a String:
MITwpu
Capital 1etters:3
Small letters:3