Substring Counting in Python and Adding 2 Numbers From One Line of Input
<p>I'm following a python website for my schoolwork. It's really neat, it gives you tasks to complete and compiles the code in the browser. Anyway, I came to a challenge that I'm not really sure how to go about.</p>

<p>One of the questions was:</p>

<blockquote>
  <p>The same substring may occur several times inside the same string: for example "assesses" has the substring "sses" 2 times, and
  "trans-Panamanian banana" has the substring "an" 6 times. Write a
  program that takes two lines of input, we call the first needle and
  the second haystack. Print the number of times that needle occurs as a
  substring of haystack.</p>
</blockquote>

<p>I'm not too sure how I should start this, I know I have to compare the two strings but how? I used the <code>count</code> method, but it didn't recognize the second occurrence of <code>sses</code> in <code>assesses</code>.</p>

<p>My second question is one I solved but I cheated a little.</p>

<p>The question was:</p>

<blockquote>
  <p>Write a program that takes a single input line of the form «number1»+«number2», where both of these represent positive integers,
  and outputs the sum of the two numbers. For example on input 5+12 the
  output should be 17.</p>
</blockquote>

<p>I used the <code>eval()</code> method and it worked, I just think that this wasn't what the grader had in mind for this.</p>

<p>Any insight would be greatly appreciated.</p>

<p><strong>EDIT:</strong> Second question was solved.</p>
