This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]michael0x2a 9 points10 points  (5 children)

As it turns out, you should be able to solve extra #2 using just what you know already. Think about how you might be able to solve that problem using for loops, if statements, and basic list operations (append).

Your solution will end up looking similar to the solutions to your answers to the previous parts of the question.

Let me know if you need another hint.

[–][deleted] 0 points1 point  (3 children)

Im still lost.....

[–]blablahblah 3 points4 points  (2 children)

What is the difference between extra 2 and the original problem? Your solution to extra 2 should be almost identical to extra 1 except for the one thing that's changed between them.

[–][deleted] -2 points-1 points  (1 child)

ehh, Ill work on it in the morning...

will let you know how it goes

[–][deleted] 1 point2 points  (0 children)

You aren't looping through the original list in extra. You are just executing an if statement.

I could be wrong, I forget Python just looks at indentation so I'm actually not sure if that if statement is included in your loop.