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
|