FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
fluentpython_example-code/02-array-seq/bisect_insort.py at master · DanielSzoska/fluentpython_example-code · GitHub
DanielSzoska
/
fluentpython_example-code
Public
forked from
fluentpython/example-code
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
fluentpython_example-code
/
02-array-seq
/
bisect_insort.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
12 lines (9 loc) · 210 Bytes
Breadcrumbs
fluentpython_example-code
/
02-array-seq
/
bisect_insort.py
Copy path
File metadata and controls
12 lines (9 loc) · 210 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
import
bisect
import
random
SIZE
=
7
random
.
seed
(
1729
)
my_list
=
[]
for
i
in
range
(
SIZE
):
new_item
=
random
.
randrange
(
SIZE
*
2
)
bisect
.
insort
(
my_list
,
new_item
)
print
(
'%2d ->'
%
new_item
,
my_list
)
Back
|
FazBrowse Home
|
New Git URL