We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f49404 commit 634f893Copy full SHA for 634f893
1 file changed
newcodes/answers/q58-2.py
@@ -0,0 +1,11 @@
1
+#!/usr/bin/env python
2
+# coding=utf-8
3
+
4
+def parabola(a, b, c):
5
+ def para(x):
6
+ return a*x**2 + b*x + c
7
+ return para
8
9
+p = parabola(2, 3, 4)
10
+x = 3
11
+print(p(3))
0 commit comments