Skip to main content

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.

    • Random numbers

    • Prime numbers

Have fun. Please Feel free to contact me if you encounter any issue.

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

nummer_games-0.1.tar.gz (2.9 kB view hashes)

Uploaded Source

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