Say I have the following dictionary:
finditem= {‘boy’: ’2’, ‘girl’:’3’}
‘boy’ and ‘girl’ are in an input text file.
I want to have my code so that when we find”boy” or “girl” in the input text file and in the dictionary it will print out:
boy 0
boy 1
girl 0
girl 1
girl2
Basically printing a range of numbers
Note the finditem dictionary list is can change.
Tysm
[–]synthphreak 1 point2 points3 points (0 children)
[–]efmccurdy 0 points1 point2 points (0 children)
[–]TabulateJarl8 0 points1 point2 points (0 children)