User Profile
Collapse
-
I solved it thanks anyway. -
Trying to test whether the index of a dictionary is even or odd
Hello everyone,
First time poster. Been at python about 2 weeks now.
As part of a larger challenge (that I have mostly solved) I need to print every other keypair in a dictionary.
The way I thought about this was looping through the dictionary with an index method and then trying to use % to tell if it was even or odd. If it was odd I would just append it to a new variable.
I am having all kind...
No activity results to display
Show More
Leave a comment: