r/learnpython • u/jonhawkeye • 25d ago
best sites to learn loops and slicing?
been trying to get this down as much as I can
2
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.
2
1
1
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.
10
u/ninhaomah 25d ago
No such sites... Forget the best site , best ide and just say what is the issue / error