Skip to main content

Last digit of squares

Project description

This is an experimental package for demonstration purposes in video courses. It depends on Numpy and Pandas. It calculates the square numbers up to n, takes the last digit of each and creates a distribution dictionary. Example usage:

from fcs_package.fcs_last_digit import last_digit_of_squares

print(last_digit_of_squares(1000))

Result:

{0: 100, 1: 200, 4: 200, 5: 100, 6: 200, 9: 200}

Big numbers should be avoided because square should fit into 32 bit integer.

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

fcs_package-1.0.1.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fcs_package-1.0.1-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

Details for the file fcs_package-1.0.1.tar.gz.

File metadata

  • Download URL: fcs_package-1.0.1.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for fcs_package-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1f88c4159d6be168c2dd1dfe9483550abb4155ddbe52d841149e09c8d2328850
MD5 de003190f1f8240a058b4a0de09d88c4
BLAKE2b-256 f7d51a23b968d61996d92540fe87a24e14ad1b481c10c84595da96240665c262

See more details on using hashes here.

File details

Details for the file fcs_package-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: fcs_package-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for fcs_package-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1389e0532fe5f6db13d51e5fcd3e20d052fae3ef2d26d02a65230f201b2bd854
MD5 e047e819b921242712c00a03351f8b5b
BLAKE2b-256 c9dd8c384bd0d1c5252539e266472061a8c5afc8a227cdc4bb3e282ca8c07b63

See more details on using hashes here.

Supported by

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