Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson13-diy2
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f3e890c2
authored
Aug 22, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
b87fcb82
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
33
diy2.py
33
0 → 100644
View file @
f3e890c2
112 73 169 28 40 144 87 123 156 179
28 73 169 112 40 144 87 123 156 179
28 40 169 112 73 144 87 123 156 179
28 40 73 112 169 144 87 123 156 179
28 40 73 87 169 144 112 123 156 179
28 40 73 87 112 144 169 123 156 179
28 40 73 87 112 123 169 144 156 179
28 40 73 87 112 123 144 169 156 179
28 40 73 87 112 123 144 156 169 179
\ No newline at end of file
diy2.py
View file @
f3e890c2
import
random
n
=
int
(
input
())
sb
=
list
(
map
(
int
,
input
()
.
split
()))
sb
=
sort
()
print
(
sb
)
\ No newline at end of file
arr
=
[]
for
i
in
range
(
n
):
arr
.
append
(
random
.
randint
(
1
,
100
))
arr
.
sort
()
for
i
in
range
(
n
):
arr
[
i
]
=
str
(
arr
[
i
])
print
(
','
.
join
(
arr
))
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment