Guest User

Untitled

a guest
Dec 14th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.56 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\n"
  13. ]
  14. }
  15. ],
  16. "source": [
  17. "print(\"Hello\")"
  18. ]
  19. },
  20. {
  21. "cell_type": "code",
  22. "execution_count": 2,
  23. "metadata": {},
  24. "outputs": [
  25. {
  26. "data": {
  27. "text/plain": [
  28. "3"
  29. ]
  30. },
  31. "execution_count": 2,
  32. "metadata": {},
  33. "output_type": "execute_result"
  34. }
  35. ],
  36. "source": [
  37. "1+2\n"
  38. ]
  39. },
  40. {
  41. "cell_type": "code",
  42. "execution_count": 3,
  43. "metadata": {},
  44. "outputs": [],
  45. "source": [
  46. "import sys"
  47. ]
  48. },
  49. {
  50. "cell_type": "code",
  51. "execution_count": 4,
  52. "metadata": {},
  53. "outputs": [
  54. {
  55. "name": "stdout",
  56. "output_type": "stream",
  57. "text": [
  58. "3.6.6 |Anaconda, Inc.| (default, Jun 28 2018, 17:14:51) \n",
  59. "[GCC 7.2.0]\n"
  60. ]
  61. }
  62. ],
  63. "source": [
  64. "print(sys.version)"
  65. ]
  66. },
  67. {
  68. "cell_type": "code",
  69. "execution_count": 5,
  70. "metadata": {},
  71. "outputs": [
  72. {
  73. "data": {
  74. "text/plain": [
  75. "int"
  76. ]
  77. },
  78. "execution_count": 5,
  79. "metadata": {},
  80. "output_type": "execute_result"
  81. }
  82. ],
  83. "source": [
  84. "type(-1)"
  85. ]
  86. },
  87. {
  88. "cell_type": "code",
  89. "execution_count": 6,
  90. "metadata": {},
  91. "outputs": [
  92. {
  93. "data": {
  94. "text/plain": [
  95. "2.0"
  96. ]
  97. },
  98. "execution_count": 6,
  99. "metadata": {},
  100. "output_type": "execute_result"
  101. }
  102. ],
  103. "source": [
  104. "float(2)"
  105. ]
  106. },
  107. {
  108. "cell_type": "code",
  109. "execution_count": 7,
  110. "metadata": {},
  111. "outputs": [
  112. {
  113. "data": {
  114. "text/plain": [
  115. "1"
  116. ]
  117. },
  118. "execution_count": 7,
  119. "metadata": {},
  120. "output_type": "execute_result"
  121. }
  122. ],
  123. "source": [
  124. "int(True)"
  125. ]
  126. },
  127. {
  128. "cell_type": "code",
  129. "execution_count": 8,
  130. "metadata": {},
  131. "outputs": [
  132. {
  133. "data": {
  134. "text/plain": [
  135. "float"
  136. ]
  137. },
  138. "execution_count": 8,
  139. "metadata": {},
  140. "output_type": "execute_result"
  141. }
  142. ],
  143. "source": [
  144. " type(6/2)"
  145. ]
  146. },
  147. {
  148. "cell_type": "code",
  149. "execution_count": 9,
  150. "metadata": {},
  151. "outputs": [
  152. {
  153. "data": {
  154. "text/plain": [
  155. "int"
  156. ]
  157. },
  158. "execution_count": 9,
  159. "metadata": {},
  160. "output_type": "execute_result"
  161. }
  162. ],
  163. "source": [
  164. "type(6//2)"
  165. ]
  166. },
  167. {
  168. "cell_type": "code",
  169. "execution_count": 10,
  170. "metadata": {},
  171. "outputs": [
  172. {
  173. "data": {
  174. "text/plain": [
  175. "2.6666666666666665"
  176. ]
  177. },
  178. "execution_count": 10,
  179. "metadata": {},
  180. "output_type": "execute_result"
  181. }
  182. ],
  183. "source": [
  184. "160/60"
  185. ]
  186. },
  187. {
  188. "cell_type": "code",
  189. "execution_count": 11,
  190. "metadata": {},
  191. "outputs": [
  192. {
  193. "data": {
  194. "text/plain": [
  195. "2"
  196. ]
  197. },
  198. "execution_count": 11,
  199. "metadata": {},
  200. "output_type": "execute_result"
  201. }
  202. ],
  203. "source": [
  204. "160//60"
  205. ]
  206. },
  207. {
  208. "cell_type": "code",
  209. "execution_count": null,
  210. "metadata": {},
  211. "outputs": [],
  212. "source": []
  213. }
  214. ],
  215. "metadata": {
  216. "kernelspec": {
  217. "display_name": "Python 3",
  218. "language": "python",
  219. "name": "python3"
  220. },
  221. "language_info": {
  222. "codemirror_mode": {
  223. "name": "ipython",
  224. "version": 3
  225. },
  226. "file_extension": ".py",
  227. "mimetype": "text/x-python",
  228. "name": "python",
  229. "nbconvert_exporter": "python",
  230. "pygments_lexer": "ipython3",
  231. "version": "3.6.6"
  232. }
  233. },
  234. "nbformat": 4,
  235. "nbformat_minor": 2
  236. }
Add Comment
Please, Sign In to add comment