Beginning but get confuse at the end

Assignment Help Business Management
Reference no: EM131764938

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

Reference no: EM131764938

Questions Cloud

Why these goals are appropriate and realistic : An explanation of why these goals are appropriate and realistic in terms of your curricular, extracurricular, professional, and personal experiences.
What would be the net present value : If an investment is made now for $21,002.00 that will generate a cash inflow of $2,520.24 a year for the next 4 years, what would be the net present value
How we should live our lives as a result : The second half of the paper will be you arguing if there is a point to life, what it is, and how we should live our lives as a result.
Is the theory designed for short- or long-term counseling : What concepts of the theory make it the most appropriate for the client in the case study?What will be the counselor's role with this client?
Beginning but get confuse at the end : 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.
Discuss a factory building : A Factory building and Machines Both of these are PP&E
Prepare a cash flow forecast for the given years : These sales will be made on three months' credit and there will be no bad debts. There are only three cost elements: 1. First, wages amounting to $6 million.
Determine the present value : Using the tables above, determine the present value of $13,517.00 (rounded to the nearest dollar) to be received at the end of each of the next 3 years
Acting as agent for an undisclosed principal : Parke-Bernet Galleries, acting as agent for an undisclosed principal, sold a painting to Weisz.

Reviews

Write a Review

Business Management Questions & Answers

  Caselet on michael porter’s value chain management

The assignment in management is a two part assignment dealing 1.Theory of function of management. 2. Operations and Controlling.

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. Due to increase in the preference for light beer drinkers, Chris Prangel wants to introduce light beer version in Mountain Man. An analysis into the la..

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. An analysis into the launch of Mountain Man Light over the present Mountain Man Lager.

  Analysis of the case using the doing ethics technique

Analysis of the case using the Doing Ethics Technique (DET). Analysis of the ethical issue(s) from the perspective of an ICT professional, using the ACS Code of  Conduct and properly relating clauses from the ACS Code of Conduct to the ethical issue.

  Affiliations and partnerships

Affiliations and partnerships are frequently used to reach a larger local audience? Which options stand to avail for the Hotel manager and what problems do these pose.

  Innovation-friendly regulations

What influence (if any) can organizations exercise to encourage ‘innovation-friendly' regulations?

  Effect of regional and corporate cultural issues

Present your findings as a group powerpoint with an audio file. In addition individually write up your own conclusions as to the effects of regional cultural issues on the corporate organisational culture of this multinational company as it conducts ..

  Structure of business plan

This assignment shows a structure of business plan. The task is to write a business plane about a Diet Shop.

  Identify the purposes of different types of organisations

Identify the purposes of different types of organisations.

  Entrepreneur case study for analysis

Entrepreneur Case Study for Analysis. Analyze Robin Wolaner's suitability to be an entrepreneur

  Forecasting and business analysis

This problem requires you to apply your cross-sectional analysis skills to a real cross-sectional data set with the goal of answering a specific research question.

  Educational instructional leadership

Prepare a major handout on the key principles of instructional leadership

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd