daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Feb 20th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. L=input("Enter a sequence of characters separated by spaces: ")
  2. L=L.split()
  3.  
  4. for i in range(len(L)):
  5.     if ord('a')<=ord(L[i]) and ord(L[i])<=ord('z'):
  6.         L[i]=chr(ord(L[i])+ord('A')-ord('a'))
  7.        
  8. print(L)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top