Skip to content
Advertisement

Tag: counter

Updating A List Word Counter

I’m creating a program that counts letters. I created two dictionaries that both have the same word and, because they are the same exact word, both have the same counter. I want to know how to merge the two dictionaries so that it updates the counters as well, but I consistently receive the result “NONE.” Answer You can concatenate strings

Implementing a match counter into a lotto number guesser

im rather new to python and found someones lottery simulation in github. After playing around with it for a while i wanted to add a counter, that counts the number of matches of your Number out of the total draws. I don’t know if it is because i did not write the code myself, but i can’t seem to make

Advertisement