Saved Bookmarks
| 1. |
An index out of bounds given with a list name causes error, but not with list slices. Why? |
| Answer» Bcoz there is no element having index greater than or equal to length of list..hence it gives an error while using such index values but in slicing it automatically slices the list upto the very last element even if index is out of range. | |