Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. import statistics
  2.  
  3. print("WSQ-07")
  4. print("Ingresa el primer número")
  5. a = float(input())
  6. print("Ingresa el segundo número")
  7. b = float(input())
  8. print("Ingresa el tercer número")
  9. c = float(input())
  10. print("Ingresa el cuarto número")
  11. d = float(input())
  12. print("Ingresa el quinto número")
  13. e = float(input())
  14. print("Ingresa el sexto número")
  15. f = float(input())
  16. print("Ingresa el septimo número")
  17. g = float(input())
  18. print("Ingresa el octavo número")
  19. h = float(input())
  20. print("Ingresa el noveno número")
  21. i = float(input())
  22. print("Ingresa el décimo número")
  23. j = float(input())
  24. l = [a,b,c,d,e,f,g,h,i,j]
  25. print("La suma total de tus números es de ", sum(l))
  26. print("El promedio de tus números es de ", statistics.mean(l))
  27. print("La desviación estándar de tus números es de ", statistics.stdev(l))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement