Toggle navigation
About
Contact US
Jobs
Coding
Interview Questions
Submit
CseWay
A Way For Learning
Program to toggle between lowercase and uppercase characters in a string
Programs
No comments
input=raw_input('')
res=""
for x in xrange(len(input)):
val=ord(input[x])
if(val>=65 and val<=90 ):
res+=chr(val+32)
elif(val>=97 and val<=122):
res+=chr(val-32)
else:
res+=input[x]
print res
Newer Post
Older Post
No comments :
Post a Comment
Subscribe to:
Post Comments ( Atom )
Popular Posts
Translate
Contact Form
Name
Email
*
Message
*
No comments :
Post a Comment