title: Determining multiples of 3 or 5 in python
body: <p>I'm relatively new to python and thus trying to set myself up running some simple algorithms. Here's the first problem from project euler, although there are other solutions available to the same problem in python, but I've tried a different approach.</p>
  
  <p>In crux the idea is to find the sum of all multiples of 3 or 5 less than 1000. This is my code.</p>
  
  <pre><code>def main():
  
      num = input('Insert number:')
      output = sumOfMultiples(num)
      print(output)
  
  
  def sumOfMultiples(param):
  
      j = 0
      i = 0
      for i in range(i, param):
          if (i % 3 ==0) or (i % 5 == 0) and (i % 15 != 0):
              j = j + i
      return j
  
  if __name__ == '__main__':
      main()
  </code></pre>
  
  <p>This is the error that I get</p>
  
  <pre><code>Traceback (most recent call last):
    File "/Users/Soumasish/PycharmProjects/MultiplesOf3And5/Main.py", line 21, in &lt;module&gt;
      main()
    File "/Users/Soumasish/PycharmProjects/MultiplesOf3And5/Main.py", line 7, in main
      output = sumOfMultiples(num)
    File "/Users/Soumasish/PycharmProjects/MultiplesOf3And5/Main.py", line 15, in sumOfMultiples
      for i in range(i, param):
  TypeError: 'str' object cannot be interpreted as an integer
  
  Process finished with exit code 1
  </code></pre>