From 38eecff3d9298083a19ddfcfcb063f0277e21477 Mon Sep 17 00:00:00 2001 From: Lukas Baumann Date: Thu, 18 Feb 2021 21:09:02 +0100 Subject: [PATCH] Create 5 - Sorting Scramble.py --- 02/x/5 - Sorting Scramble.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 02/x/5 - Sorting Scramble.py diff --git a/02/x/5 - Sorting Scramble.py b/02/x/5 - Sorting Scramble.py new file mode 100644 index 0000000..5f0eac6 --- /dev/null +++ b/02/x/5 - Sorting Scramble.py @@ -0,0 +1,9 @@ +tmp = max(x, y) +x = min(x, y) +y = tmp +tmp = max(y, z) +y = min(y, z) +z = tmp +tmp = max(x, y) +x = min(x, y) +y = tmp