zjfz-2019-s402281/intro/Task106.py

16 lines
296 B
Python
Raw Normal View History

2020-01-12 13:16:55 +01:00
#!/usr/bin/python2
2020-01-12 13:11:00 +01:00
# -*- coding: utf-8 -*-
"""Rozwiązanie zadania 106."""
2020-01-12 13:16:55 +01:00
def freq_dic(seq):
"""Placeholder"""
dictionary = {}
for xxx in seq:
if dictionary.has_key(xxx):
dictionary[xxx] += 1
else:
dictionary[xxx] = 1
return dictionary