You are on page 1of 3

emed

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').

2A neion is a block e Code which onl nns


when js c allod No can poo douda Bncn as
paamehexs iado aanckion. A Åunction can Ashun
dada

Sundo x

nckion nam e

Plaosn GODILinux-

L4bit reo ang ogenSa

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))

print( "Enter a String: ")


a-input ()
cap(a)

UTPUT
Console 1/AX

In (18]: runfile( "C:/Users/Ayush Dhakane/.spyder-Py3/temp.py' Ndir"C:/Users/Ay


Dhakone/.spyder-py3 )
Enter a String:
Ayush
Capital letters: 1
Small letters:4

Dhahcreuntile("C:/Users/Ayush Dhokane/.spyder-py3/temp-py'. wdir='C:/Users/Ayu

Dhakane/.spyder-py3)
Enter a String:
MITwpu
Capital 1etters:3
Small letters:3

der: 5.4.0 LPython Corsole History Termina Col 1 ASCI CRLF RW Me


internet fmttu

You might also like