From 81df6d941197097c9fbb74cf7608878012209e80 Mon Sep 17 00:00:00 2001 From: kim_yubin Date: Sun, 21 Oct 2018 14:29:05 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B6=94=EA=B0=80=20'=EB=82=B4=EB=A6=BC?= =?UTF-8?q?=EC=B0=A8=EC=88=9C'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 내림차순 | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 내림차순 diff --git a/내림차순 b/내림차순 new file mode 100644 index 0000000..d762faa --- /dev/null +++ b/내림차순 @@ -0,0 +1,29 @@ +import random +r=random.randint(1, 10) +a=0 +b=0 +c=0 +t=0 +u=0 +list=[] + +while t<4: + r=random.randint(1, 10) + list.append(r) + t+=1 + +print(list) + +t=0 +while tlist[u]: + c = list[t] + list[t] = list[u] + list[u] = c + u+=1 + t+=1 + + +print(list) \ No newline at end of file