Question: How do you Convert from a string like str=Ted-Zage-Nancy-Lewis-Mind-Bob-Alex into a Lists like ['Ted', 'Zage', 'Nancy', 'Lewis', 'Mind', 'Bob', 'Alex'] ?? A. str.replase(- , )

How do you Convert from a string like str=\"Ted-Zage-Nancy-Lewis-Mind-Bob-Alex\" into a Lists like ['Ted', 'Zage', 'Nancy', 'Lewis', 'Mind', 'Bob', 'Alex'] ??

A. str.replase(- , )

B. str.replace(search [-], replace )

C. str.delimited( - , )

D. str.split(\"-\")

An investment produces a cash flow of $420 in year 1, $137 in year 2, and $797 in year 3. If the required rate of return is 15%, what price should you pay for the investment at time zero?

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 Programming Questions!