Skip to content

Generating a tuple containg only even numbers from another tuple (which i marked as question 43) #1

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ni8mr
Copy link

@ni8mr ni8mr commented Oct 9, 2014

If i loop according to your method, (for i in tuple_name:) the for loop go out of the range of the tuple index.

So i do in this way,

for i in range(0,len(tuple_name))

and it works as it keeps the loop within the range of the index of the tuple.

jaflesch added a commit to jaflesch/Python-programming-exercises that referenced this pull request Jan 22, 2019
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.

1 participant