def myUppercase(S) SUpper=S.upper() return SUpper def isLower(ch): if ord('a')<=ord(ch)<=ord('z') return True else return False def isLower3(ch): return 'a'<=ch<='z' def isLower2(ch): return ord('a')<=ord(ch)<=ord(z) def myUppercase(S): SUpper=' ' for ch in S: if isLower(ch): SUpper+=chr(ord(ch)-ord('a')+ord('A') else: SUpper+=ch return SUpper
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question