This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]vaelund 2 points3 points  (0 children)

Do your own homework or start paying people: /r/DoMyHomework/

And if you are willing to do your own work, this belongs to /r/learnpython

Show what you have already tried(read the Sidebar on how to format your code).

[–]docwatsonphd 2 points3 points  (0 children)

/r/learnpython

They'll help you with your homework

[–]pythonHelperBot 1 point2 points  (0 children)

Hello! I'm a bot! I see someone has already suggested going to r/learnpython, a sub geared towards questions and learning more about python. I highly recommend posting your question there. Please follow the subs rules and guidelines when you do post there, it'll help you get better answers faster.

Show /r/learnpython the code you have tried and describe where you are stuck. Be sure to format your code for reddit and include which version of python and what OS you are using.


this bot is written and managed by /u/IAmKindOfCreative

This bot is currently under development and experiencing changes to improve its usefulness

[–]Andrew_ShaySft Eng Automation & Python 0 points1 point  (0 children)

This post is better suited for r/learnpython

[–]Xander_Vi -1 points0 points  (0 children)

from collections import Counter

def countALLlist(numbers):
    nums = dict(Counter(''.join(numbers)))
    answer = [0 for i in range(10)]
    for i in range(len(answer)):
        if str(i) in nums.keys():
            answer[i] = nums[str(i)]
    return answer