Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3bf54e3

Browse files
rm 3.6 note
1 parent 01ee2f8 commit 3bf54e3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

‎code/random_walk.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ def random_walk(n):
3232

3333
def random_walk_faster(n=1000):
3434
from itertools import accumulate
35-
# Only available from Python 3.6
3635
steps = random.choices([-1,+1], k=n)
3736
return [0]+list(accumulate(steps))
3837

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /