Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.68 KB | None | 0 0
  1. {
  2. "cells": [
  3. {
  4. "cell_type": "code",
  5. "execution_count": 1,
  6. "metadata": {},
  7. "outputs": [
  8. {
  9. "name": "stdout",
  10. "output_type": "stream",
  11. "text": [
  12. "Hello, Python!\n"
  13. ]
  14. }
  15. ],
  16. "source": [
  17. "print('Hello, Python!')"
  18. ]
  19. },
  20. {
  21. "cell_type": "code",
  22. "execution_count": 2,
  23. "metadata": {},
  24. "outputs": [
  25. {
  26. "name": "stdout",
  27. "output_type": "stream",
  28. "text": [
  29. "3.6.8 |Anaconda, Inc.| (default, Dec 30 2018, 01:22:34) \n",
  30. "[GCC 7.3.0]\n"
  31. ]
  32. }
  33. ],
  34. "source": [
  35. "import sys\n",
  36. "print(sys.version)"
  37. ]
  38. },
  39. {
  40. "cell_type": "code",
  41. "execution_count": 3,
  42. "metadata": {},
  43. "outputs": [
  44. {
  45. "name": "stdout",
  46. "output_type": "stream",
  47. "text": [
  48. "Hello, Python\n"
  49. ]
  50. }
  51. ],
  52. "source": [
  53. "print('Hello, Python') #This line prints a string"
  54. ]
  55. },
  56. {
  57. "cell_type": "code",
  58. "execution_count": 4,
  59. "metadata": {},
  60. "outputs": [],
  61. "source": [
  62. "# print('Hi')"
  63. ]
  64. },
  65. {
  66. "cell_type": "code",
  67. "execution_count": 5,
  68. "metadata": {},
  69. "outputs": [
  70. {
  71. "name": "stdout",
  72. "output_type": "stream",
  73. "text": [
  74. "Hello, world\n"
  75. ]
  76. }
  77. ],
  78. "source": [
  79. "print('Hello, world')"
  80. ]
  81. },
  82. {
  83. "cell_type": "code",
  84. "execution_count": 6,
  85. "metadata": {},
  86. "outputs": [
  87. {
  88. "data": {
  89. "text/plain": [
  90. "int"
  91. ]
  92. },
  93. "execution_count": 6,
  94. "metadata": {},
  95. "output_type": "execute_result"
  96. }
  97. ],
  98. "source": [
  99. "type(12)"
  100. ]
  101. },
  102. {
  103. "cell_type": "code",
  104. "execution_count": 7,
  105. "metadata": {},
  106. "outputs": [
  107. {
  108. "data": {
  109. "text/plain": [
  110. "float"
  111. ]
  112. },
  113. "execution_count": 7,
  114. "metadata": {},
  115. "output_type": "execute_result"
  116. }
  117. ],
  118. "source": [
  119. "type(2.14)"
  120. ]
  121. },
  122. {
  123. "cell_type": "code",
  124. "execution_count": 8,
  125. "metadata": {},
  126. "outputs": [
  127. {
  128. "data": {
  129. "text/plain": [
  130. "str"
  131. ]
  132. },
  133. "execution_count": 8,
  134. "metadata": {},
  135. "output_type": "execute_result"
  136. }
  137. ],
  138. "source": [
  139. "type(\"Hello, Python 101\")"
  140. ]
  141. },
  142. {
  143. "cell_type": "code",
  144. "execution_count": null,
  145. "metadata": {},
  146. "outputs": [],
  147. "source": []
  148. }
  149. ],
  150. "metadata": {
  151. "kernelspec": {
  152. "display_name": "Python 3",
  153. "language": "python",
  154. "name": "python3"
  155. },
  156. "language_info": {
  157. "codemirror_mode": {
  158. "name": "ipython",
  159. "version": 3
  160. },
  161. "file_extension": ".py",
  162. "mimetype": "text/x-python",
  163. "name": "python",
  164. "nbconvert_exporter": "python",
  165. "pygments_lexer": "ipython3",
  166. "version": "3.6.8"
  167. }
  168. },
  169. "nbformat": 4,
  170. "nbformat_minor": 2
  171. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement