Question: Write a string index that returns just the letter 'r' from 'Hello World' For example, 'Hello World' [0] returns 'H' You should only write

Write a string index that returns just the letter 'r' from 'Hello

 

Write a string index that returns just the letter 'r' from 'Hello World' For example, 'Hello World' [0] returns 'H' You should only write one line of code for this. Do not assign a variable name to the string.

Step by Step Solution

3.45 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Hello World8 returns r Index of the string ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!