Skip to content

Instantly share code, notes, and snippets.

@RaMSFT
Created October 12, 2022 13:04
Show Gist options
  • Select an option

  • Save RaMSFT/ff67ebd01e301397e7af652c3c105b0b to your computer and use it in GitHub Desktop.

Select an option

Save RaMSFT/ff67ebd01e301397e7af652c3c105b0b to your computer and use it in GitHub Desktop.
def get_sum_of_elements(lst):
return sum(lst)
print(get_sum_of_elements([2, 7, 4]))
print(get_sum_of_elements([45, 3, 0]))
print(get_sum_of_elements([-2, 84, 23]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment