Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a={'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'}
- b={'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'}
- with open("input.txt", "r") as file:
- res=file.read().replace('\n', '').replace('\r', '').replace(' ', '')
- x=set(res)
- c = a.difference (x)
- d = b.difference (x)
- e = a.difference (c)
- f = b.difference (d)
- v=list(f)
- w=''.join(v)
- y=w.upper()
- h=set(y)
- g = e.difference (h)
- print(g)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement