Skip to main content

Useful utils

Project description

sinaasappel

Useful utils

Recursive sum

Use the following commands to calculate the sum of a nested list of ints:

from sinaasappel import recursive_sum

list_sum = recursive_sum([1, 2, [3, [4]]])
print(list_sum)  # prints 10

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sinaasappel-0.1.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

sinaasappel-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file sinaasappel-0.1.0.tar.gz.

File metadata

  • Download URL: sinaasappel-0.1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for sinaasappel-0.1.0.tar.gz
Algorithm Hash digest
SHA256 52bac22b9b784cf4f1484ab4f1540043fa9c8ad84cc101f3a01b7212fd23e1cb
MD5 03ba95a6a71a505fc447d24947ab9f30
BLAKE2b-256 4d47c96c4f38a9f39ead441b47bdc4847a252cb17377323bd47031b669257e9a

See more details on using hashes here.

File details

Details for the file sinaasappel-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sinaasappel-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for sinaasappel-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 41cc6b2acbd784c51f285085fa757215f98d65bdaecd674d9a163b02111378c4
MD5 1dc6be91c22870e2da5686a7fe261439
BLAKE2b-256 5697f89c20f1c17193d06274771786ba9ebf7f9647d7232bc39443e4045528a8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page