MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of the following piece of code? >>> a=(0,1,2,3,4) >>> b=slice(0,2) >>> a[b] |
| A. | Invalid syntax for slicing |
| B. | [0,2]. |
| C. | (0,1) |
| D. | (0,2) |
| Answer» D. (0,2) | |