Skip to content

Instantly share code, notes, and snippets.

@ofelix03
Last active May 7, 2021 07:45
Show Gist options
  • Select an option

  • Save ofelix03/056ce55bc1aad4692b2da53a429a6a09 to your computer and use it in GitHub Desktop.

Select an option

Save ofelix03/056ce55bc1aad4692b2da53a429a6a09 to your computer and use it in GitHub Desktop.
summation-using-for-loop-better
allocation_amounts = [120.0, 320.30, 420.0, 100.0]
print("total_allocation: ", sum([allocation_amounts]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment