Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- def komprimier_Verfahren(args):
- d = {}
- for stng in args:
- for c in stng:
- if (c not in d):
- d[c] = 1
- else:
- d[c] +=1
- for k,v in d.items():
- if(v > 1):
- print("{}{}".format(k,v), end = "")
- else:
- print(k, end = "")
- print("")
- d = {}
- komprimier_Verfahren(sys.argv[1:])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement