Skip to content

Instantly share code, notes, and snippets.

@avielb
Created April 29, 2019 17:34
Show Gist options
  • Save avielb/131021a10ab5992555e71893d0cf39a6 to your computer and use it in GitHub Desktop.
Save avielb/131021a10ab5992555e71893d0cf39a6 to your computer and use it in GitHub Desktop.
def square(number):
return number*number
def sum_list(list_to_sum):
sum = 0
for number in list_to_sum:
sum = sum + number
return sum
def find_a_number(mylist, number_to_find):
for number in mylist:
if number == number_to_find:
return True
return False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment