TutorMe homepage
Subjects
PRICING
COURSES
Start Free Trial
Mary Anne S.
Indiana University graduate with three degrees and a 4.0 GPA
Tutor Satisfaction Guarantee
Python Programming
TutorMe
Question:

Fix the bug in this python program that calculates the sum of items in a list. def myListSum(inputList): return inputList[0] + myListSum(inputList[1:]) Examples: myListSum( [ 1, 2, 3 ] ) should return 6 myListSum( [ ] ) should return 0

Mary Anne S.

We need to add a base case for this recursive solution to work. def myListSum(inputList): if len(inputList) == 0: return 0 else: return inputList[0] + myListSum(inputList[1:])

Writing
TutorMe
Question:

Which of the following is the strongest thesis statement for an essay about the benefits of foreign language study? Why? A) In this essay, I am going to tell you why studying a foreign language can benefit your life in a variety of diverse ways and why you should start studying a foreign language. B) Although learning a foreign language can be difficult, there are many advantages to foreign language study. C) While many people already realize that studying a foreign language can increase job prospects, foreign language study also has additional cognitive and social benefits.

Mary Anne S.

C is the best answer. Let's talk about why. Option A uses many words to say very little. For example, the phrase "a variety of diverse ways" is redundant. Option B is similarly vague and boring; it doesn't give the reader a great idea of what information the remainder of the essay will contain. Option C, on the other hand, provides specific examples of the kinds of benefits that foreign language study provides. The reader can expect to see arguments and examples for each of these types of benefits in the paragraphs that follow.

Calculus
TutorMe
Question:

What is one example of a real-world problem that can be solved with calculus?

Mary Anne S.

Calculus is often useful in solving physics problems. For example, if we have a plot of the position of a particle over time, we can find the velocity of the particle at any given point in time by calculating the derivative at a point.

Send a message explaining your
needs and Mary Anne will reply soon.
Contact Mary Anne