title: Python: defining a function with mean and standard deviation calculation
body: <p>I am trying to calculate mean and the population standard deviation without using stats module...and my code will be</p>
  <pre><code>total = 0
  sum3 = 0
  def stats():
      global total
      for numbers in range(0,len(my_list)):
          total = total + my_list[numbers]
      mean = total / len(my_list)    
      print(mean)
      for numbers in range(0,len(my_list)):
          global sum3 
          sum3 = sum3 + (my_list[numbers] - mean)**2
          sum21 = sum3 / len(my_list)
      standard_dev = sum21**(1/2)
      print(standard_dev)
  my_list1 = input()
  my_list = my_list1.split()
  print(my_list)
  stats()
  </code></pre>
  <p>also help me to assign a list of numbers to int.....thank u</p>