Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement