Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save akaomy/224793468946ce28a922961655abae0d to your computer and use it in GitHub Desktop.
Save akaomy/224793468946ce28a922961655abae0d to your computer and use it in GitHub Desktop.
start_list = [5, 3, 1, 2, 4]
square_list = []
for i in start_list:
test = i ** 2
square_list.append(test)
square_list.sort()
print square_list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment