Question: Must be in Python 3: Indexing: First ask the user for a string. ( 1 pt ) Enter any String Hello world Write a loop

Must be in Python 3:

Indexing:

First ask the user for a string. ( 1 pt )

Enter any String Hello world 

Write a loop to output the characters at each index from 0 to the end of the string. Output the index and the character. ( 2 pts )

Enter any string Hello 0 H 1 e 2 l 3 l 4 o 

Next, using negative indexes start at the end of the string and go to the beginning. Output the index and character ( 2 pts )

-1 o -2 l -3 l -4 e -5 H 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!