Guest User

Untitled

a guest
Jan 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. {
  2. "cells": [
  3. {
  4. "metadata": {
  5. "trusted": true
  6. },
  7. "cell_type": "code",
  8. "source": "# This program adds two numbers\n\nnum1 = 1.5\nnum2 = 6.3\n\n# Add two numbers\nsum = float(num1) + float(num2)\n\n# Display the sum\nprint('The sum of {0} and {1} is {2}'.format(num1, num2, sum))",
  9. "execution_count": 3,
  10. "outputs": [
  11. {
  12. "name": "stdout",
  13. "output_type": "stream",
  14. "text": "The sum of 1.5 and 6.3 is 7.8\n"
  15. }
  16. ]
  17. },
  18. {
  19. "metadata": {
  20. "collapsed": true,
  21. "trusted": true
  22. },
  23. "cell_type": "code",
  24. "source": "",
  25. "execution_count": null,
  26. "outputs": []
  27. }
  28. ],
  29. "metadata": {
  30. "gist_id": "cff6158c7f635cffac2ad0801e617675",
  31. "kernelspec": {
  32. "name": "python3",
  33. "display_name": "Python 3",
  34. "language": "python"
  35. },
  36. "language_info": {
  37. "name": "python",
  38. "version": "3.6.3",
  39. "mimetype": "text/x-python",
  40. "codemirror_mode": {
  41. "name": "ipython",
  42. "version": 3
  43. },
  44. "pygments_lexer": "ipython3",
  45. "nbconvert_exporter": "python",
  46. "file_extension": ".py"
  47. }
  48. },
  49. "nbformat": 4,
  50. "nbformat_minor": 2
  51. }
Add Comment
Please, Sign In to add comment