Skip to content

Commit 634f893

Browse files
committed
para
1 parent 6f49404 commit 634f893

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

newcodes/answers/q58-2.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)