Posts by Carlos_2021 • 1 point
2 posts
-
0
votes1
answer43
viewsA: Read file and count repeated elements
For future research of the type. import json import textwrap from collections import Counter group_size = 6 res = Counter() with open('arq.txt') as f: for line in f: res.update({_: 1 for _ in…
-
-3
votes1
answer43
viewsQ: Read file and count repeated elements
Hey there, guys. I need some help solving a cucumber quickly. At work I have a file that has 18 characters per line (more than 600 lines). I need to read each line and in each line read 6 characters…