Skip to content

Instantly share code, notes, and snippets.

@abadger
Last active November 10, 2022 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abadger/b6de3f643c2f5fc21bd8941c3a3bdf37 to your computer and use it in GitHub Desktop.
Save abadger/b6de3f643c2f5fc21bd8941c3a3bdf37 to your computer and use it in GitHub Desktop.
List exercises
Given a list of numbers that I will give you, loop through the list and
if it is even, add two to it. If it is odd, multiply it by two. Then
return the new list of numbers to me to use in my program.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment