Commit fdc28319 authored by Florestan Biaux's avatar Florestan Biaux 💬
Browse files

creation print tab

parent b1e850db
......@@ -20,4 +20,4 @@ if __name__ == "__main__":
if choice == 2:
print(users.usertab(data))
if choice == 3:
stats.counttalk(users.usertab(data), data)
stats.printtab(stats.counttalk(users.usertab(data), data))
......@@ -13,4 +13,9 @@ def counttalk(usertab, data):
for i in range(len(counttalk[0])):
if decode.string_decode(msg["sender_name"]) == counttalk[0][i]:
counttalk[1][i] = int(counttalk[1][i])+1
print(counttalk)
return counttalk
def printtab(tab):
for i in range(len(tab[0])):
print(str(tab[0][i]) + " : " + str(tab[1][i]) + " messages")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment