title: recursive function in python adding?
body: <p>So the question reads: Design a function that accepts an integer argument and return’s the sum of all integers from  1 up to the number passed as an argument. For example, if 50 is passed as an argument, the function will return the sum of 1,2,3,4…….50. Use recursion to calculate the sum.
  im having lots of trouble as you can tell by my code</p>
  
  <pre><code>def main():
      numbers= int(input('Enter a number to add the sums: ')
      mysum = sum_num(numbers,1)
  
  
  def sum_num(numbers,mysum):
      start=1
      end=numbers
      if start&gt;end:
          return 0
      else:
          return my_sum
  main()
  </code></pre>