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

Python

How can slices be used on production apps?

For example I have a social media application. Are slices something I would need to know in order to make a social media application, or is this something for niche uses? What are examples of slices in productions uses?

1 Answer

Chris Freeman
MOD
Chris Freeman
Treehouse Moderator 68,468 Points

Slices are a fundamental method to create or reference sublists or make copies from one list to another. It's possible to avoid using slices in the short term but you'll need them eventually on more complicated tasks.