Guess random numbers and prime numbers
Project description
The Number Game
This Python module allows you to guess random numbers within your selected number of attempts. It also allows you to guess Prime numbers within your selected number of attempts.
Instructions
-
Enter your terminal
-
Install the module:
pip install nummer-games
-
Enter your python interactive shell:
python
-
Import required functions:
from nummer_games import Classify, Prime
-
Iterate through attempts by guessing random numbers:
Classify(n).guess_number()
-
Iterate through attempts by guessing prime numbers:
Prime(n).guess_prime_number()
-
Note:
- n represents the number of attempts
-
Illustration
-
You can look into the screenshots or commands below to follow through the process of guessing random numbers and prime numbers in three attempts.
-
pythonfrom nummer_games import Classify, PrimeClassify(3).guess_number()
-
pythonfrom nummer_games import Classify, PrimePrime(3).guess_prime_number()
-
Have fun. Please Feel free to contact me if you encounter any issue.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nummer_games-0.2.tar.gz.
File metadata
- Download URL: nummer_games-0.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7a50d0ff93399dc5e34f466e192d5626513bb59dd057f31dd818ecf4f5d77b6
|
|
| MD5 |
636c235d7c2c155a8413af4b3862ce93
|
|
| BLAKE2b-256 |
2037ea56d4d5fc6d11a666bc72c4624151993f033db5e436456bed31d9e9173d
|
File details
Details for the file nummer_games-0.2-py3-none-any.whl.
File metadata
- Download URL: nummer_games-0.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46f96f7e579c408843c23d37f81bb49723a6281223692ba9cdc9d783bf7ca608
|
|
| MD5 |
3b1db6170f1694ff11c2b7c2fe42ef69
|
|
| BLAKE2b-256 |
6dd9882317f4401f83926df308693f44b7e9f47a78fa44494a7d6c4871447d3f
|