0
Solved Ai generated practice the last question
Slice notation for watermelon [âwater, bread, sugar, melonâ] [0+3]
2 RĂ©ponses
+ 4
the syntax for slicing is [start: stop: step]
when only 2 values are given, it's [start:stop]
you copied the code inaccurately. Strings go between " ".
+ 1
[start : end : step] # or [start : stop : step]
the end or stop is excluded