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.
1 parent f0809f9 commit 8a4ed91Copy full SHA for 8a4ed91
exercises/12-Rand-From-One-to-Twelve/app.py
@@ -2,6 +2,6 @@
2
3
def get_randomInt():
4
# Your code here
5
-
+ return random.randrange(1,13)
6
7
print(get_randomInt())
exercises/12-Rand-From-One-to-Twelve/test.py
@@ -22,7 +22,7 @@ def test_function_existence(app):
22
def test_conditional():
23
with open(path, 'r') as content_file:
24
content = content_file.read()
25
- pattern = r"random_number(\s*)=(\s*)random\.randrange+\(1,13\)"
+ pattern = r"random\.randrange+\(1,13\)"
26
regex = re.compile(pattern)
27
assert bool(regex.search(content)) == True
28
0 commit comments