Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- L=input("Enter a sequence of characters separated by spaces: ")
- L=L.split()
- for i in range(len(L)):
- if ord('a')<=ord(L[i]) and ord(L[i])<=ord('z'):
- L[i]=chr(ord(L[i])+ord('A')-ord('a'))
- print(L)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement