title: Divide each element by the next one in python
body: <p>How can i Divide each element by the next one in division function? i am passing arbitrary arguments in the calling function. Thanks in advance. </p>
  
  <pre><code>    def add(*number):
          numm = 0
          for num in number:
              numm =num+numm
          return numm
  
      def subtract(*number):
          numm = 0
          for num in number:
              numm = num-numm
          return numm
  
      def division(*number):
          #i am facing problem here
          # numm = 1
          # for num in number:
  
          try:
          if (z&gt;=1 and z&lt;=4):
              def get_input():
                  print('Please enter numbers with a space seperation...')
                  values = input()
                  listOfValues = [int(x) for x in values.split()]
                  return listOfValues
  
              val_list = get_input()
  
              if z==1:
                  print("Addition of  numbers is:", add(*val_list))
              elif z==2:
                  print("Subtraction of numbers is:", subtract(*val_list))
              elif z==3:
                  print("division of numbers is:", division(*val_list))
  </code></pre>