File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
exercises/14-Rand-From-One-to-Six Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 1- # ` 14 ` Rand From 0 to 12
1+ # ` 14 ` Rand From 1 to 12
22
33
44## 📝 Instructions:
@@ -9,7 +9,6 @@ This time use **randrange()**
99## 💡 Hint:
1010
1111- It should print between 1 and 12, not between 0 and 12.
12- - Use randrange(n) (Specify only 1 argument, randrange(99))
1312- This exercise is super simple, don't over complicate things....
1413
1514
Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ def test_conditional():
1515 content = [x .strip () for x in content ]
1616 my_print = [s for s in content if "random_number =" in s ]
1717 my_printVar = content .index (my_print [0 ])
18- regex = r"random_number(\s*)=(\s*)random\.randrange+\(13\)"
18+ regex = r"random_number(\s*)=(\s*)random\.randrange+\(1, 13\)"
1919 assert re .match (regex , content [my_printVar ])
You can’t perform that action at this time.
0 commit comments