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
-
Enter your python interactive shell:
python
-
Import required functions:
from nummer 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 below to follow through the process of guessing random numbers and prime numbers in three attempts.
-
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.