Question: This is for Python 3.1 This problem tests your string manipulation skills. Prompt the user to enter a sentence that ends with a price with

This is for Python 3.1

This problem tests your string manipulation skills.

Prompt the user to enter a sentence that ends with a price with a '$' in front of it. Find the index position of the price. Then display both the index and the price. Note that the sentence provided by the user can be of any length, so long as it ends with a price.

Your display should look like this. User input is indicated with a red underline:

Please give us a sentence about item you bought.

End the sentence with its price, including the dollar sign.

Item and price: I found Nike golf balls on sale for $22.95.

The price is at index position: 36

The price is $22.95.

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!