d
d
6 years ago in STEMGeeks by slashformotion (55)
$0.60
- Past Payouts $0.60
- - Author $0.30
- - Curators $0.30
37 votes
- laruche: $0.23
- zuerich: $0.22
- kamchore: $0.04
- enforcer48: $0.03
- gitplait: $0.02
- arcange: $0.02
- bala41288: $0.01
- crokkon: $0.01
- oniemaniego: $0.00
- ancolie: $0.00
- orlandumike: $0.00
- pboulet: $0.00
- as31: $0.00
- francosteemvotes: $0.00
- robotics101: $0.00
- duke77: $0.00
- aidefr: $0.00
- tykee: $0.00
- fancybrothers: $0.00
- fengchao: $0.00
- and 17 more
You earlier said that what you publish does not relate to what we want in our community but the fact is it is exactly what we appreciate. A cross post will also be will appreciated. Great post
Thanks for sharing
Your post has been submitted to be manually curated by @gitplait community account because this is the kind of publications we like to see in our community.
Join our Community on Hive and Chat with us on Discord.
[Gitplait-Team]
will do
Didn't know about this before @slashformotion! Interesting, would be useful for complex solutions.
I'm confused with Counter:
>>>counter_instance = Counter(a=4, b=2, c=0, d=-2) >>>sorted(counter_instance.elements()) ['a', 'a', 'a', 'a', 'b', 'b']Is the
valuepart the occurence or the index? I see the sorted output of the elements() function is only displaying a list of letter withkey/indexgreater than 0.It's not exactly that.
valueis a key and thecountis the value in Counter. Counter is a kind of dict, if that help you visualize.if you want to see how it's done => https://github.com/python/cpython/blob/c77f71f9819022fa3adeb2f710e564a392ff24c6/Lib/collections/init.py#L489