Guest User

Untitled

a guest
Jan 16th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. {
  2. "cells": [
  3. {
  4. "cell_type": "code",
  5. "execution_count": 6,
  6. "metadata": {},
  7. "outputs": [
  8. {
  9. "name": "stdout",
  10. "output_type": "stream",
  11. "text": [
  12. "d1 => 24.21590386502226\n",
  13. "d2 => 265.0744046489589\n"
  14. ]
  15. }
  16. ],
  17. "source": [
  18. "import numpy as np\n",
  19. "\n",
  20. "# Create 10 random data between 0 - 100.\n",
  21. "d1 = np.random.randint(0, 100, 10)\n",
  22. "\n",
  23. "# Create 10 random data between 0 - 1000.\n",
  24. "d2 = np.random.randint(0, 1000, 10)\n",
  25. "\n",
  26. "sd1 = np.std(d1)\n",
  27. "sd2 = np.std(d2)\n",
  28. "\n",
  29. "print(\"d1 => \", sd1)\n",
  30. "print(\"d2 => \", sd2)"
  31. ]
  32. }
  33. ],
  34. "metadata": {
  35. "kernelspec": {
  36. "display_name": "Python 3",
  37. "language": "python",
  38. "name": "python3"
  39. },
  40. "language_info": {
  41. "codemirror_mode": {
  42. "name": "ipython",
  43. "version": 3
  44. },
  45. "file_extension": ".py",
  46. "mimetype": "text/x-python",
  47. "name": "python",
  48. "nbconvert_exporter": "python",
  49. "pygments_lexer": "ipython3",
  50. "version": "3.6.8"
  51. }
  52. },
  53. "nbformat": 4,
  54. "nbformat_minor": 2
  55. }
Add Comment
Please, Sign In to add comment