Created
April 29, 2019 17:34
-
-
Save avielb/131021a10ab5992555e71893d0cf39a6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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