Skip to main content

Check if a binary string contains 101 using DFA

Project description

contain_101_or_not

A simple Python package to check whether a binary string is accepted by a DFA that recognizes strings containing "101".

🚀 Installation

pip install contain-101-or-not

📦 Usage

from contain_101_or_not import check_accept_of_str

print(check_accept_of_str("1010"))  # True
print(check_accept_of_str("0000"))  # False

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

contain_101_or_not-1.1.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

contain_101_or_not-1.1.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file contain_101_or_not-1.1.0.tar.gz.

File metadata

  • Download URL: contain_101_or_not-1.1.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for contain_101_or_not-1.1.0.tar.gz
Algorithm Hash digest
SHA256 fcfa03fda58f05c3a0ee4be849b0d5a7d751a15cf23caa63968e61b72c715900
MD5 f9bf37ebf0e8218bbe65d2c7332aecca
BLAKE2b-256 e4947dbd6078cdfbfb9b7d9c2afcdd1165f65dd5d9d94aab96c8426ea95a46ed

See more details on using hashes here.

File details

Details for the file contain_101_or_not-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for contain_101_or_not-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 078b5e6b4bee29cdec6f7d683e23da59271ce406ef426c82e650ac5986d75b27
MD5 b056c84abdb94ecddc15bd28b224ddb6
BLAKE2b-256 3af6cd4490cb6b5577020878d8c155a86823a63e9b8af2c0462528b0d51c5cb7

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