We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c2adf7b + 2621f89 commit 46963a8Copy full SHA for 46963a8
exercises/04-Call-a-function/solution.hide.py
@@ -0,0 +1,7 @@
1
+def calculate_area(length,edge):
2
+ return length * edge
3
+
4
+# Your code Below this line:
5
+square_area1 = calculate_area(4,4)
6
+square_area2 = calculate_area(2,2)
7
+square_area3 = calculate_area(5,5)
exercises/04-Call-a-function/tests.py
@@ -48,5 +48,5 @@ def test_call_calculate_area():
48
path = os.path.dirname(os.path.abspath(__file__))+'/app.py'
49
with open(path, 'r') as content_file:
50
content = content_file.read()
51
- regex = re.compile(r"=(\s*)calculate_area\(")
+ regex = re.compile(r"=(\s*)calculate_area\s*\(")
52
assert bool(regex.search(content)) == True
0 commit comments