Skip to content

Commit 0d4515e

Browse files
committed
Added some import statements
1 parent b65cd9b commit 0d4515e

1 file changed

Lines changed: 116 additions & 0 deletions

File tree

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"source": [
6+
"Imports\r\n",
7+
"-------"
8+
],
9+
"metadata": {}
10+
},
11+
{
12+
"cell_type": "code",
13+
"execution_count": 1,
14+
"source": [
15+
"import math\r\n",
16+
"\r\n",
17+
"print(math.exp(2))"
18+
],
19+
"outputs": [
20+
{
21+
"output_type": "stream",
22+
"name": "stdout",
23+
"text": [
24+
"7.38905609893065\n"
25+
]
26+
}
27+
],
28+
"metadata": {}
29+
},
30+
{
31+
"cell_type": "code",
32+
"execution_count": 2,
33+
"source": [
34+
"from math import exp\r\n",
35+
"\r\n",
36+
"print(exp(2))"
37+
],
38+
"outputs": [
39+
{
40+
"output_type": "stream",
41+
"name": "stdout",
42+
"text": [
43+
"7.38905609893065\n"
44+
]
45+
}
46+
],
47+
"metadata": {}
48+
},
49+
{
50+
"cell_type": "code",
51+
"execution_count": null,
52+
"source": [
53+
"from math import *\r\n",
54+
"\r\n",
55+
"print(exp(2))"
56+
],
57+
"outputs": [],
58+
"metadata": {}
59+
},
60+
{
61+
"cell_type": "code",
62+
"execution_count": 4,
63+
"source": [
64+
"import datetime\r\n",
65+
"\r\n",
66+
"print(datetime.date.today())\r\n",
67+
"print(datetime.datetime.now())"
68+
],
69+
"outputs": [
70+
{
71+
"output_type": "stream",
72+
"name": "stdout",
73+
"text": [
74+
"2021-08-07\n"
75+
]
76+
},
77+
{
78+
"output_type": "error",
79+
"ename": "AttributeError",
80+
"evalue": "module 'datetime' has no attribute 'now'",
81+
"traceback": [
82+
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
83+
"\u001b[1;31mAttributeError\u001b[0m Traceback (most recent call last)",
84+
"\u001b[1;32m<ipython-input-4-5130bd658a6c>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[0;32m 2\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 3\u001b[0m \u001b[0mprint\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mdatetime\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mdate\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mtoday\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m----> 4\u001b[1;33m \u001b[0mprint\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mdatetime\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mnow\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
85+
"\u001b[1;31mAttributeError\u001b[0m: module 'datetime' has no attribute 'now'"
86+
]
87+
}
88+
],
89+
"metadata": {}
90+
}
91+
],
92+
"metadata": {
93+
"orig_nbformat": 4,
94+
"language_info": {
95+
"name": "python",
96+
"version": "3.9.4",
97+
"mimetype": "text/x-python",
98+
"codemirror_mode": {
99+
"name": "ipython",
100+
"version": 3
101+
},
102+
"pygments_lexer": "ipython3",
103+
"nbconvert_exporter": "python",
104+
"file_extension": ".py"
105+
},
106+
"kernelspec": {
107+
"name": "python3",
108+
"display_name": "Python 3.9.4 64-bit"
109+
},
110+
"interpreter": {
111+
"hash": "63fd5069d213b44bf678585dea6b12cceca9941eaf7f819626cde1f2670de90d"
112+
}
113+
},
114+
"nbformat": 4,
115+
"nbformat_minor": 2
116+
}

0 commit comments

Comments
 (0)