Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Business Management Expert

I need help with this code. i have run it already and know the answer but i want someone who can tell me more about how to trace this code. I can trace it from the beginning but get confuse at the end. Please you explanation should be well understood.

def justOnce(aString):

rtn = []

initials = []

words = aString.split()

for word in words:

initials.append(word[0])

for letter in initials:

if initials.count(letter) == 1:

rtn.append(letter)

return rtn

s = 'Seventy six trombones led the big parade'

print(justOnce(s))

a. ['S', 's', 'l', 't', 'b', 'p']

b. ['Seventy', 'six', 'led', 'big', 'parade']

c. ['s', 'l', 'b', 'p'] d. ['S', 's', 'l', 'b', 'p']

e. None of the above

Business Management, Management Studies

  • Category:- Business Management
  • Reference No.:- M92573621
  • Price:- $10

Priced at Now at $10, Verified Solution

Have any Question?


Related Questions in Business Management

Evaluate the challenges and opportunities of an expatriate

Evaluate the challenges and opportunities of an expatriate position. How can these challenges be overcome?

The real economy defined - the humansocial system or

The real economy ( defined - the human/social system or process for transferring material elements into higher order and more complex material composites to meet human needs and desires) cannot be used to reduced to pure ...

Show examples of organizations that are more focused on

Show examples of organizations that are more focused on simply bringing in money to the organization and those that are more focused on building relationships. What are the differences in how they conduct fundraising act ...

What would applying the idea of organizational culture tell

What would applying the idea of organizational culture tell you about the place you work, or of any other place that someone might work at?

Briefly discuss the advantages and disadvantages of line

Briefly discuss the advantages and disadvantages of line balancing?

The four pillars of corporate sustainability is an evolving

The four pillars of corporate sustainability is an evolving concept that managers are adopting as an alternative to the traditional growth and profit-maximization model. Discuss

What is the strategy of break talk are they succeeding or

What is the strategy of Break Talk? Are they succeeding or failing? Why?

How would you define the ideal organizational

How would you define the ideal organizational culture?

How is the study of how firms decisions about prices and

How is the study of how firms' decisions about prices and quantities depend on the market conditions they face,the field of industrial organization, and the cost of production.

Elm industries receives profits from polluting according to

Elm Industries receives profits from polluting according to the formula: (pi=10Q-Q^2) The Damages associated with pollution from this facility are estimated to be: (D=Q^2+2Q) (Q= pollution emitted in tons) , and profits ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As