Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!
Syntax Highlighting
Source Link
DaveShaw

a[len(a):]a[len(a):] - This gets you the length of a to the end. It selects a range. If you reverse a[:len(a)] a[:len(a)] it will get you the beginning to whatever is len(a)len(a).

a[len(a):] - This gets you the length of a to the end. It selects a range. If you reverse a[:len(a)] it will get you the beginning to whatever is len(a).

a[len(a):] - This gets you the length of a to the end. It selects a range. If you reverse a[:len(a)] it will get you the beginning to whatever is len(a).

Source Link
GISman

a[len(a):] - This gets you the length of a to the end. It selects a range. If you reverse a[:len(a)] it will get you the beginning to whatever is len(a).

lang-py