Created
April 21, 2020 00:17
-
-
Save roman-on/9230ff2929550e8bd8331aab594371db to your computer and use it in GitHub Desktop.
This file contains hidden or 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
""" | |
The function accepts two parameters: list and number n. | |
The function returns a new list containing all organs larger than the number n. | |
>>> result = is_greater([1, 30, 25, 60, 27, 28], 28) | |
>>> print(result) | |
[30, 60] | |
""" | |
def is_greater(my_list, n): | |
result = [] | |
for num in my_list: | |
if num > n: | |
result.append(num) | |
return (result) | |
def main(): | |
<your code here> | |
if __name__ == "__main__": | |
main() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment