Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- def main():
- a = input("Prv string: ")
- # b = input("Vtor string: ")
- a_mapa = dict()
- b_mapa = dict()
- for c in a:
- if c not in a_mapa.keys():
- a_mapa.update({c: 1})
- else:
- a_mapa.update({c: a_mapa.get(c) + 1})
- for key, value in a_mapa.items():
- print(f"Key: {key} = {value}")
- if __name__ == "__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement