Skip to main content

This package comes with lots of functionality which makes your work easy !

Project description

Project Title

This is very simple package that comes with the following functionalities.

  1. multiplication_table() : Prints the multiplication table from 1 to 5 by default.

  2. fahrenheit_to_celsius() : Converts Fahrenheit to Celsius given an integer parameter.

  3. celsius_to_fahrenheit() : Converts Celsius to Fahrenheit given an integer parameter.

  4. finds_the_longest_word() : Returns the longest word from a provided string.

  5. binary_to_decimal() : This function handles user input and output. It prompts the user to input a binary number, processes it through the main() function, and displays the appropriate result based on the validity of the input.

  6. fibonacci_series_generator() : This function generates Fibonacci numbers interactively in groups of 10, allowing the user to proceed by pressing “Enter” or terminate the program with “Ctrl+D”.

Documentation

See the documentation section at:

Author

See the Author of this project at:

Badges

abu-project

https://badge.fury.io/py/abu-project.svg https://img.shields.io/badge/License-MIT-yellow.svg

Installation and Use

To install the package, use pip:

pip install abu-project

To use the package in your Python script:

Usage

To use the package in your Python script, first import the FunnyFuncs class from the abu_project module. Here are some examples:

from abu_project import FunnyFuncs

funcs = FunnyFuncs()

# Generate multiplication tables from 1 to 5
funcs.multiplication_table()

# Convert Fahrenheit to Celsius
print(funcs.fahrenheit_to_celsius(440))  # Output: 440 Fahrenheit -> 226.67° Celsius

# Convert Celsius to Fahrenheit
print(funcs.celsius_to_fahrenheit(40))  # Output: 40° Celsius -> 104.00 Fahrenheit

# Find the longest word in a sentence
print(funcs.finds_the_longest_word("The quick brown fox jumps over the lazy dog"))
# Output: The longest word is : jumps

# Convert a binary number to decimal
funcs.binary_to_decimal()

# Generate Fibonacci numbers
funcs.fibonacci_series_generator()

Features

  1. Multiplication Table: Generate multiplication tables for a range of numbers.

  2. Temperature Conversion: Convert temperatures between Fahrenheit and Celsius.

  3. Longest Word Finder: Identify the longest word in a given sentence.

  4. Binary to Decimal Conversion: Convert a binary number to its decimal equivalent.

  5. Fibonacci Series Generator: Generate an infinite series of Fibonacci numbers.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Change Log

1.44(31/12/2024)

  • Sixth Release

  • Encapsulating the implementation of the main() function

  • Added Docstring for every function.

  • Added an interactive fibonacci_series_generator function to generate Fibonacci numbers in groups of 10 with user-controlled continuation.

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

abu_project-1.44.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

abu_project-1.44-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file abu_project-1.44.tar.gz.

File metadata

  • Download URL: abu_project-1.44.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for abu_project-1.44.tar.gz
Algorithm Hash digest
SHA256 9aa71dc8ad60f6bcf2135d64915bca3b910f292cd27eefc9f367f20b61b2297c
MD5 79fd3e617acf2dc000b465db9a190946
BLAKE2b-256 1e43205ef41a6224d240331e742ae86e7e32b1b26d9300b3db86170b0a738e4e

See more details on using hashes here.

File details

Details for the file abu_project-1.44-py3-none-any.whl.

File metadata

  • Download URL: abu_project-1.44-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for abu_project-1.44-py3-none-any.whl
Algorithm Hash digest
SHA256 5efcb89677b4c3d4672cf9b8ee65778704e6d0d6fe41a142b0b5e9c8a4e60302
MD5 29fd190751ad2c78c59cf739439b6610
BLAKE2b-256 b1c3e47053ac8e8c2b816a221e342a30b0f9b8eddd9f7f5153a97a9fff273a8c

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