From 634cd801fe3e6b671d0e48905ef5bd2e24ee503d Mon Sep 17 00:00:00 2001 From: Avery Adams Date: Sun, 4 Jun 2023 15:13:15 +1200 Subject: Solutions for Avery Adams for week 219 --- challenge-219/avery-adams/python/ch-1.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 challenge-219/avery-adams/python/ch-1.py (limited to 'challenge-219/avery-adams/python') diff --git a/challenge-219/avery-adams/python/ch-1.py b/challenge-219/avery-adams/python/ch-1.py new file mode 100644 index 0000000000..5bbe55fb26 --- /dev/null +++ b/challenge-219/avery-adams/python/ch-1.py @@ -0,0 +1,8 @@ +#!/usr/bin/python + +list = [int(input("Num1:")), int(input("Num2:")), int(input("Num3:")), int(input("Num4:")), int(input("Num5:"))] +for index in range(len(list)): + list[index] = list[index] ** 2 +list.sort() +for square in list: + print(square) -- cgit