Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit bb047a6

Browse files
Ante MarsicAnte Marsic
authored andcommittedJan 26, 2016
First commit
1 parent caa976a commit bb047a6

8 files changed

+742
-0
lines changed
 
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 1,
6+
"metadata": {
7+
"collapsed": false
8+
},
9+
"outputs": [
10+
{
11+
"name": "stdout",
12+
"output_type": "stream",
13+
"text": [
14+
"<class 'list'>\n",
15+
"4\n"
16+
]
17+
}
18+
],
19+
"source": [
20+
"# Create variables var1 and var2\n",
21+
"var1 = [1, 2, 3, 4]\n",
22+
"var2 = True\n",
23+
"\n",
24+
"# Print out type of var1\n",
25+
"print(type(var1))\n",
26+
"\n",
27+
"# Print out length of var1\n",
28+
"print(len(var1))\n",
29+
"\n",
30+
"# Convert var2 to an integer: out2\n",
31+
"out2 = int(var2)"
32+
]
33+
},
34+
{
35+
"cell_type": "markdown",
36+
"metadata": {},
37+
"source": [
38+
"1. Use the Shell on the right to open up the documentation on complex(). Which of the following statements is true?\n",
39+
" - complex() takes two arguments: real and imag. real is a required argument, imag is an optional argument."
40+
]
41+
},
42+
{
43+
"cell_type": "code",
44+
"execution_count": 2,
45+
"metadata": {
46+
"collapsed": false
47+
},
48+
"outputs": [
49+
{
50+
"name": "stdout",
51+
"output_type": "stream",
52+
"text": [
53+
"[20.0, 18.0, 11.25, 10.75, 9.5]\n"
54+
]
55+
}
56+
],
57+
"source": [
58+
"# Create lists first and second\n",
59+
"first = [11.25, 18.0, 20.0]\n",
60+
"second = [10.75, 9.50]\n",
61+
"\n",
62+
"# Paste together first and second: full\n",
63+
"full = first + second\n",
64+
"\n",
65+
"# Sort full in descending order: full_sorted\n",
66+
"full_sorted = sorted(full, reverse = True)\n",
67+
"\n",
68+
"# Print out full_sorted\n",
69+
"print(full_sorted)"
70+
]
71+
}
72+
],
73+
"metadata": {
74+
"kernelspec": {
75+
"display_name": "Python 3",
76+
"language": "python",
77+
"name": "python3"
78+
},
79+
"language_info": {
80+
"codemirror_mode": {
81+
"name": "ipython",
82+
"version": 3
83+
},
84+
"file_extension": ".py",
85+
"mimetype": "text/x-python",
86+
"name": "python",
87+
"nbconvert_exporter": "python",
88+
"pygments_lexer": "ipython3",
89+
"version": "3.5.1"
90+
}
91+
},
92+
"nbformat": 4,
93+
"nbformat_minor": 0
94+
}
Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 1,
6+
"metadata": {
7+
"collapsed": false
8+
},
9+
"outputs": [
10+
{
11+
"name": "stdout",
12+
"output_type": "stream",
13+
"text": [
14+
"poolhouse\n",
15+
"POOLHOUSE\n",
16+
"3\n"
17+
]
18+
}
19+
],
20+
"source": [
21+
"# string to experiment with: room\n",
22+
"room = \"poolhouse\"\n",
23+
"\n",
24+
"# Use upper() on room: room_up\n",
25+
"room_up = room.upper()\n",
26+
"\n",
27+
"# Print out room and room_up\n",
28+
"print(room); print(room_up)\n",
29+
"\n",
30+
"# Print out the number of o's in room\n",
31+
"print(room.count(\"o\"))"
32+
]
33+
},
34+
{
35+
"cell_type": "code",
36+
"execution_count": 2,
37+
"metadata": {
38+
"collapsed": false
39+
},
40+
"outputs": [
41+
{
42+
"name": "stdout",
43+
"output_type": "stream",
44+
"text": [
45+
"2\n",
46+
"0\n"
47+
]
48+
}
49+
],
50+
"source": [
51+
"# Create list areas\n",
52+
"areas = [11.25, 18.0, 20.0, 10.75, 9.50]\n",
53+
"\n",
54+
"# Print out the index of the element 20.0\n",
55+
"print(areas.index(20.0))\n",
56+
"\n",
57+
"# Print out how often 14.5 appears in areas\n",
58+
"print(areas.count(14.5))"
59+
]
60+
},
61+
{
62+
"cell_type": "code",
63+
"execution_count": 3,
64+
"metadata": {
65+
"collapsed": false
66+
},
67+
"outputs": [
68+
{
69+
"name": "stdout",
70+
"output_type": "stream",
71+
"text": [
72+
"[11.25, 18.0, 20.0, 10.75, 9.5, 24.5, 15.45]\n",
73+
"[15.45, 24.5, 9.5, 10.75, 20.0, 18.0, 11.25]\n"
74+
]
75+
}
76+
],
77+
"source": [
78+
"# Create list areas\n",
79+
"areas = [11.25, 18.0, 20.0, 10.75, 9.50]\n",
80+
"\n",
81+
"# Use append twice to add poolhouse and garage size\n",
82+
"areas.append(24.5); areas.append(15.45)\n",
83+
"\n",
84+
"\n",
85+
"# Print out areas\n",
86+
"print(areas)\n",
87+
"\n",
88+
"# Reverse the orders of the elements in areas\n",
89+
"areas.reverse()\n",
90+
"\n",
91+
"# Print out areas\n",
92+
"print(areas)"
93+
]
94+
},
95+
{
96+
"cell_type": "code",
97+
"execution_count": null,
98+
"metadata": {
99+
"collapsed": true
100+
},
101+
"outputs": [],
102+
"source": []
103+
}
104+
],
105+
"metadata": {
106+
"kernelspec": {
107+
"display_name": "Python 3",
108+
"language": "python",
109+
"name": "python3"
110+
},
111+
"language_info": {
112+
"codemirror_mode": {
113+
"name": "ipython",
114+
"version": 3
115+
},
116+
"file_extension": ".py",
117+
"mimetype": "text/x-python",
118+
"name": "python",
119+
"nbconvert_exporter": "python",
120+
"pygments_lexer": "ipython3",
121+
"version": "3.5.1"
122+
}
123+
},
124+
"nbformat": 4,
125+
"nbformat_minor": 0
126+
}
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 1,
6+
"metadata": {
7+
"collapsed": false
8+
},
9+
"outputs": [
10+
{
11+
"name": "stdout",
12+
"output_type": "stream",
13+
"text": [
14+
"Circumference: 2.701769682087222\n",
15+
"Area: 0.5808804816487527\n"
16+
]
17+
}
18+
],
19+
"source": [
20+
"# Definition of radius\n",
21+
"r = 0.43\n",
22+
"\n",
23+
"# Import the math package\n",
24+
"import math\n",
25+
"\n",
26+
"# Calculate C\n",
27+
"C = 2*math.pi*r\n",
28+
"\n",
29+
"# Calculate A\n",
30+
"A = math.pi*r**2\n",
31+
"\n",
32+
"# Build printout\n",
33+
"print(\"Circumference: \" + str(C))\n",
34+
"print(\"Area: \" + str(A))"
35+
]
36+
},
37+
{
38+
"cell_type": "code",
39+
"execution_count": 2,
40+
"metadata": {
41+
"collapsed": false
42+
},
43+
"outputs": [
44+
{
45+
"name": "stdout",
46+
"output_type": "stream",
47+
"text": [
48+
"40317.10572106901\n"
49+
]
50+
}
51+
],
52+
"source": [
53+
"# Definition of radius\n",
54+
"r = 192500\n",
55+
"\n",
56+
"# Import radians function of math package\n",
57+
"from math import radians\n",
58+
"\n",
59+
"# Travel distance of Moon if 12 degrees. Store in dist.\n",
60+
"dist = r* radians(12)\n",
61+
"\n",
62+
"# Print out dist\n",
63+
"print(dist)"
64+
]
65+
},
66+
{
67+
"cell_type": "markdown",
68+
"metadata": {},
69+
"source": [
70+
"1. There are several ways to import packages and modules into Python. Depending on the import call, you'll have to use different Python code. Suppose you want to use the function inv(), which is in the linalg subpackage of the scipy package. You want to be able to use this function as follows: my_inv([[1,2], [3,4]]). Which import statement will you need in order to run the above code without an error?\n",
71+
" - from scipy.linalg import inv as my_inv"
72+
]
73+
}
74+
],
75+
"metadata": {
76+
"kernelspec": {
77+
"display_name": "Python 3",
78+
"language": "python",
79+
"name": "python3"
80+
},
81+
"language_info": {
82+
"codemirror_mode": {
83+
"name": "ipython",
84+
"version": 3
85+
},
86+
"file_extension": ".py",
87+
"mimetype": "text/x-python",
88+
"name": "python",
89+
"nbconvert_exporter": "python",
90+
"pygments_lexer": "ipython3",
91+
"version": "3.5.1"
92+
}
93+
},
94+
"nbformat": 4,
95+
"nbformat_minor": 0
96+
}

‎LABS/LAB 6. Functions.ipynb

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 1,
6+
"metadata": {
7+
"collapsed": false
8+
},
9+
"outputs": [
10+
{
11+
"name": "stdout",
12+
"output_type": "stream",
13+
"text": [
14+
"<class 'list'>\n",
15+
"4\n"
16+
]
17+
}
18+
],
19+
"source": [
20+
"# Create variables var1 and var2\n",
21+
"var1 = [1, 2, 3, 4]\n",
22+
"var2 = True\n",
23+
"\n",
24+
"# Print out type of var1\n",
25+
"print(type(var1))\n",
26+
"\n",
27+
"# Print out length of var1\n",
28+
"print(len(var1))\n",
29+
"\n",
30+
"# Convert var2 to an integer: out2\n",
31+
"out2 = int(var2)"
32+
]
33+
},
34+
{
35+
"cell_type": "markdown",
36+
"metadata": {},
37+
"source": [
38+
"1. Use the Shell on the right to open up the documentation on complex(). Which of the following statements is true?\n",
39+
" - complex() takes two arguments: real and imag. real is a required argument, imag is an optional argument."
40+
]
41+
},
42+
{
43+
"cell_type": "code",
44+
"execution_count": 2,
45+
"metadata": {
46+
"collapsed": false
47+
},
48+
"outputs": [
49+
{
50+
"name": "stdout",
51+
"output_type": "stream",
52+
"text": [
53+
"[20.0, 18.0, 11.25, 10.75, 9.5]\n"
54+
]
55+
}
56+
],
57+
"source": [
58+
"# Create lists first and second\n",
59+
"first = [11.25, 18.0, 20.0]\n",
60+
"second = [10.75, 9.50]\n",
61+
"\n",
62+
"# Paste together first and second: full\n",
63+
"full = first + second\n",
64+
"\n",
65+
"# Sort full in descending order: full_sorted\n",
66+
"full_sorted = sorted(full, reverse = True)\n",
67+
"\n",
68+
"# Print out full_sorted\n",
69+
"print(full_sorted)"
70+
]
71+
}
72+
],
73+
"metadata": {
74+
"kernelspec": {
75+
"display_name": "Python 3",
76+
"language": "python",
77+
"name": "python3"
78+
},
79+
"language_info": {
80+
"codemirror_mode": {
81+
"name": "ipython",
82+
"version": 3
83+
},
84+
"file_extension": ".py",
85+
"mimetype": "text/x-python",
86+
"name": "python",
87+
"nbconvert_exporter": "python",
88+
"pygments_lexer": "ipython3",
89+
"version": "3.5.1"
90+
}
91+
},
92+
"nbformat": 4,
93+
"nbformat_minor": 0
94+
}

‎LABS/LAB 7. Methods.ipynb

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 1,
6+
"metadata": {
7+
"collapsed": false
8+
},
9+
"outputs": [
10+
{
11+
"name": "stdout",
12+
"output_type": "stream",
13+
"text": [
14+
"poolhouse\n",
15+
"POOLHOUSE\n",
16+
"3\n"
17+
]
18+
}
19+
],
20+
"source": [
21+
"# string to experiment with: room\n",
22+
"room = \"poolhouse\"\n",
23+
"\n",
24+
"# Use upper() on room: room_up\n",
25+
"room_up = room.upper()\n",
26+
"\n",
27+
"# Print out room and room_up\n",
28+
"print(room); print(room_up)\n",
29+
"\n",
30+
"# Print out the number of o's in room\n",
31+
"print(room.count(\"o\"))"
32+
]
33+
},
34+
{
35+
"cell_type": "code",
36+
"execution_count": 2,
37+
"metadata": {
38+
"collapsed": false
39+
},
40+
"outputs": [
41+
{
42+
"name": "stdout",
43+
"output_type": "stream",
44+
"text": [
45+
"2\n",
46+
"0\n"
47+
]
48+
}
49+
],
50+
"source": [
51+
"# Create list areas\n",
52+
"areas = [11.25, 18.0, 20.0, 10.75, 9.50]\n",
53+
"\n",
54+
"# Print out the index of the element 20.0\n",
55+
"print(areas.index(20.0))\n",
56+
"\n",
57+
"# Print out how often 14.5 appears in areas\n",
58+
"print(areas.count(14.5))"
59+
]
60+
},
61+
{
62+
"cell_type": "code",
63+
"execution_count": 3,
64+
"metadata": {
65+
"collapsed": false
66+
},
67+
"outputs": [
68+
{
69+
"name": "stdout",
70+
"output_type": "stream",
71+
"text": [
72+
"[11.25, 18.0, 20.0, 10.75, 9.5, 24.5, 15.45]\n",
73+
"[15.45, 24.5, 9.5, 10.75, 20.0, 18.0, 11.25]\n"
74+
]
75+
}
76+
],
77+
"source": [
78+
"# Create list areas\n",
79+
"areas = [11.25, 18.0, 20.0, 10.75, 9.50]\n",
80+
"\n",
81+
"# Use append twice to add poolhouse and garage size\n",
82+
"areas.append(24.5); areas.append(15.45)\n",
83+
"\n",
84+
"\n",
85+
"# Print out areas\n",
86+
"print(areas)\n",
87+
"\n",
88+
"# Reverse the orders of the elements in areas\n",
89+
"areas.reverse()\n",
90+
"\n",
91+
"# Print out areas\n",
92+
"print(areas)"
93+
]
94+
},
95+
{
96+
"cell_type": "code",
97+
"execution_count": null,
98+
"metadata": {
99+
"collapsed": true
100+
},
101+
"outputs": [],
102+
"source": []
103+
}
104+
],
105+
"metadata": {
106+
"kernelspec": {
107+
"display_name": "Python 3",
108+
"language": "python",
109+
"name": "python3"
110+
},
111+
"language_info": {
112+
"codemirror_mode": {
113+
"name": "ipython",
114+
"version": 3
115+
},
116+
"file_extension": ".py",
117+
"mimetype": "text/x-python",
118+
"name": "python",
119+
"nbconvert_exporter": "python",
120+
"pygments_lexer": "ipython3",
121+
"version": "3.5.1"
122+
}
123+
},
124+
"nbformat": 4,
125+
"nbformat_minor": 0
126+
}

‎LABS/LAB 8. Packages.ipynb

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 1,
6+
"metadata": {
7+
"collapsed": false
8+
},
9+
"outputs": [
10+
{
11+
"name": "stdout",
12+
"output_type": "stream",
13+
"text": [
14+
"Circumference: 2.701769682087222\n",
15+
"Area: 0.5808804816487527\n"
16+
]
17+
}
18+
],
19+
"source": [
20+
"# Definition of radius\n",
21+
"r = 0.43\n",
22+
"\n",
23+
"# Import the math package\n",
24+
"import math\n",
25+
"\n",
26+
"# Calculate C\n",
27+
"C = 2*math.pi*r\n",
28+
"\n",
29+
"# Calculate A\n",
30+
"A = math.pi*r**2\n",
31+
"\n",
32+
"# Build printout\n",
33+
"print(\"Circumference: \" + str(C))\n",
34+
"print(\"Area: \" + str(A))"
35+
]
36+
},
37+
{
38+
"cell_type": "code",
39+
"execution_count": 2,
40+
"metadata": {
41+
"collapsed": false
42+
},
43+
"outputs": [
44+
{
45+
"name": "stdout",
46+
"output_type": "stream",
47+
"text": [
48+
"40317.10572106901\n"
49+
]
50+
}
51+
],
52+
"source": [
53+
"# Definition of radius\n",
54+
"r = 192500\n",
55+
"\n",
56+
"# Import radians function of math package\n",
57+
"from math import radians\n",
58+
"\n",
59+
"# Travel distance of Moon if 12 degrees. Store in dist.\n",
60+
"dist = r* radians(12)\n",
61+
"\n",
62+
"# Print out dist\n",
63+
"print(dist)"
64+
]
65+
},
66+
{
67+
"cell_type": "markdown",
68+
"metadata": {},
69+
"source": [
70+
"1. There are several ways to import packages and modules into Python. Depending on the import call, you'll have to use different Python code. Suppose you want to use the function inv(), which is in the linalg subpackage of the scipy package. You want to be able to use this function as follows: my_inv([[1,2], [3,4]]). Which import statement will you need in order to run the above code without an error?\n",
71+
" - from scipy.linalg import inv as my_inv"
72+
]
73+
}
74+
],
75+
"metadata": {
76+
"kernelspec": {
77+
"display_name": "Python 3",
78+
"language": "python",
79+
"name": "python3"
80+
},
81+
"language_info": {
82+
"codemirror_mode": {
83+
"name": "ipython",
84+
"version": 3
85+
},
86+
"file_extension": ".py",
87+
"mimetype": "text/x-python",
88+
"name": "python",
89+
"nbconvert_exporter": "python",
90+
"pygments_lexer": "ipython3",
91+
"version": "3.5.1"
92+
}
93+
},
94+
"nbformat": 4,
95+
"nbformat_minor": 0
96+
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"1. What is a Python function?\n",
8+
" - A piece of reusable Python code that solves a particular problem.\n",
9+
"2. In the video, you saw how the maximum of a list was calculated. Suppose you have a similar list called x. To calculate the minimum value in this list, you can use the min() function. What is the correct Python command to do this?\n",
10+
" - min(x)\n",
11+
"3. Before you use a function, you might want to open up its documentation from inside the IPython Shell. What is the correct Python command to open up the documentation on the min function?\n",
12+
" - help(min)\n",
13+
"4. The function round has two arguments, as this excerpt of the documentation shows round(...) round(number[, ndigits]) -> number Round a number to a given precision in decimal digits (default 0 digits). This returns an int when called with one argument, otherwise the same type as the number. ndigits may be negative.\n",
14+
" - number is a required argument.\n",
15+
" - ndigits is an optional argument.\n",
16+
"5. What can you say about the append() method?\n",
17+
" - In Python, methods are functions that belong to Python objects. append() is a method, and therefore also a function. \n",
18+
"6. Suppose I have a string x, defined as follows: x = \"monty python says hi!\". What's the correct Python command to capitalize this string x?\n",
19+
" - x.capitalize()\n",
20+
"7. In the video, you got to know the append() method. Consider the following two Python commands: x = [4, 9, 5, 7]; x.append(6). How does the list x look after executing these two commands?\n",
21+
" - [4, 9, 5, 7, 6]\n",
22+
"8. Which package installation and maintance system for Python did Filip talk about in the video?\n",
23+
" - pip\n",
24+
"9. In the video, all the commands to import packages used the same statement. This statement is the most common way to invoke the import machinery. What statement are we talking about here?\n",
25+
" - import\n",
26+
"10. In the video, you saw how Numpy could be imported as np. Suppose that instead of importing it as np, you decide to import it as foo: import numpy as foo. Which Python command that used the array() function from Numpy is valid if Numpy is imported as foo?\n",
27+
" - foo.array([1,2,3])\n",
28+
"11. Suppose you want to use Numpy's array() function. You can import this function as follows: from numpy import array; or you can import the entire numpy package: import numpy. Select the two statements about this difference that hold.\n",
29+
" - The from numpy import array version will make it less clear in the code that you're using Numpy's array() function.\n",
30+
" - Using import numpy will require you to use numpy.array(), making it clear that you're using a Numpy function."
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.5.1"
51+
}
52+
},
53+
"nbformat": 4,
54+
"nbformat_minor": 0
55+
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"1. What is a Python function?\n",
8+
" - A piece of reusable Python code that solves a particular problem.\n",
9+
"2. In the video, you saw how the maximum of a list was calculated. Suppose you have a similar list called x. To calculate the minimum value in this list, you can use the min() function. What is the correct Python command to do this?\n",
10+
" - min(x)\n",
11+
"3. Before you use a function, you might want to open up its documentation from inside the IPython Shell. What is the correct Python command to open up the documentation on the min function?\n",
12+
" - help(min)\n",
13+
"4. The function round has two arguments, as this excerpt of the documentation shows round(...) round(number[, ndigits]) -> number Round a number to a given precision in decimal digits (default 0 digits). This returns an int when called with one argument, otherwise the same type as the number. ndigits may be negative.\n",
14+
" - number is a required argument.\n",
15+
" - ndigits is an optional argument.\n",
16+
"5. What can you say about the append() method?\n",
17+
" - In Python, methods are functions that belong to Python objects. append() is a method, and therefore also a function. \n",
18+
"6. Suppose I have a string x, defined as follows: x = \"monty python says hi!\". What's the correct Python command to capitalize this string x?\n",
19+
" - x.capitalize()\n",
20+
"7. In the video, you got to know the append() method. Consider the following two Python commands: x = [4, 9, 5, 7]; x.append(6). How does the list x look after executing these two commands?\n",
21+
" - [4, 9, 5, 7, 6]\n",
22+
"8. Which package installation and maintance system for Python did Filip talk about in the video?\n",
23+
" - pip\n",
24+
"9. In the video, all the commands to import packages used the same statement. This statement is the most common way to invoke the import machinery. What statement are we talking about here?\n",
25+
" - import\n",
26+
"10. In the video, you saw how Numpy could be imported as np. Suppose that instead of importing it as np, you decide to import it as foo: import numpy as foo. Which Python command that used the array() function from Numpy is valid if Numpy is imported as foo?\n",
27+
" - foo.array([1,2,3])\n",
28+
"11. Suppose you want to use Numpy's array() function. You can import this function as follows: from numpy import array; or you can import the entire numpy package: import numpy. Select the two statements about this difference that hold.\n",
29+
" - The from numpy import array version will make it less clear in the code that you're using Numpy's array() function.\n",
30+
" - Using import numpy will require you to use numpy.array(), making it clear that you're using a Numpy function."
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.5.1"
51+
}
52+
},
53+
"nbformat": 4,
54+
"nbformat_minor": 0
55+
}

0 commit comments

Comments
 (0)
Please sign in to comment.