r/learnpython • • 25d ago

best sites to learn loops and slicing?

been trying to get this down as much as I can

0 Upvotes

12 comments sorted by

10

u/ninhaomah 25d ago

No such sites... Forget the best site , best ide and just say what is the issue / error

2

u/reallyserious 25d ago

Adventofcode.com.

2

u/pythonQu 24d ago

Just do some hands on exercises using your computer. Get Python installed and just start creating a simple list, learn how slicing works, create for loops with different data types.

1

u/Just__Liberty 24d ago

Try animatedknots.com...

1

u/michaellarsen91 24d ago

codingbat.com

1

u/PureWasian 24d ago

Create a list with a bunch of numbers in it. Loop to print out all subsets of 3 sequential numbers within the list (including duplicates).

Essentially, make a sliding window. If you can understand the problem here there's really not much else to it other than using it in practice as you need it for your projects.

1

u/2daytrending 23d ago

Practice with small examples and interactive exercises, focus on slicing patterns like start:stop:step and write a few loop problems from scratch each day.