Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Python examples #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

shtnk
Copy link

@shtnk shtnk commented Jun 2, 2017

No description provided.

@GYFK GYFK requested a review from aqrln June 6, 2017 21:47
@@ -0,0 +1,2 @@
for i in range(10):
print(i)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please format your code according to the PEP8 styleguide? Namely, four spaces should be used instead of tabs.

print(i)

for i in dictionary:
value = dictionary[i]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not an idiomatic way to iterate through the values of a dictionary. I'd make an example with an array instead of a dictionary.

evakononchuk added a commit to evakononchuk/Iteration that referenced this pull request Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants