Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Arrays Iteration Ye Olde Unenhanced For Loop

Start, Stop and Step.

Is this concept similar to Python lists, where you have [Start, Stop, Step]?

1 Answer

Steven Parker
Steven Parker
231,275 Points

It looks like you might be referring to Python slices; and if so, no that's a different concept.

The closest concept in Python would be a range, which is not a part of a loop but is often used with one. But the design philosophy of Python is unique enough that it's probably not a good idea to try to identify equivalent facilities between it and another language while you are still learning the basics of the other language.