695 B
695 B
Slicing
TODO: ADD MORE
- the extended solution to this exercise can employ a slice (returns a copy) instead of calling
.copy(). matrix - a slice within an iterable, i.e. the slice of items from
<iterable>[x]to<iterable>[y], can be accessed via<iterable>[x:y]notation; a third parameter allows "skipping" byz, i.e.stringname[x:y:z]phone-number - because
strin Python is a sequence type, slicing syntax can be used here. Specifically: for syntaxstring[start:stop:stride]: reverse-string