make example consistent with text. Also might consider showing the output form using the [[ operator ( i.e., str(x[[5]] ).