Skip to content

Instantly share code, notes, and snippets.

@Victoria-Hodder
Last active July 17, 2020 07:56
Show Gist options
  • Save Victoria-Hodder/f6b34fc08e8a0bb69794f94b8beb35ec to your computer and use it in GitHub Desktop.
Save Victoria-Hodder/f6b34fc08e8a0bb69794f94b8beb35ec to your computer and use it in GitHub Desktop.
list1 = [-6, -91, 1011, -100, 84, -22, 0, 1, 473]
def solution(A):
answer = [num for num in A if num in range(-9,10)]
return max(answer)
print(solution(list1))
@Victoria-Hodder
Copy link
Author

You're right, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment