Project Title
This is very simple package that comes with the following functionalities.
multiplication_table() : Prints the multiplication table from 1 to 5 by default.
fahrenheit_to_celsius() : Converts Fahrenheit to Celsius given an integer parameter.
celsius_to_fahrenheit() : Converts Celsius to Fahrenheit given an integer parameter.
finds_the_longest_word() : Returns the longest word from a provided string.
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.
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:
Badges
abu-project
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
Multiplication Table: Generate multiplication tables for a range of numbers.
Temperature Conversion: Convert temperatures between Fahrenheit and Celsius.
Longest Word Finder: Identify the longest word in a given sentence.
Binary to Decimal Conversion: Convert a binary number to its decimal equivalent.
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.46(02/01/2025)
Seventh Release (bug fixed)
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.
Fixed the type annotation in the process_data function argument.
Metadata
Release files for abu-project 1.46
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| abu_project-1.46.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| abu_project-1.46-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.1 kB
Release files / abu_project-1.46.tar.gz
| Download URL | abu_project-1.46.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a20e01f4ea3a7af8b042eaa4fc4f263beeb10ff3f1bb25f79aa3a64570422f3b
|
|
BLAKE2b-256 checksum How to use checksums |
e0453dd345cb5b6b842f2352322ec01539c07567de644844ae9a1f36e8a4b4e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.1
|
Release files / abu_project-1.46-py3-none-any.whl
| Download URL | abu_project-1.46-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a3b430081e8ac6c6aaedcb1034accadd78dae856133f43cf721ec33108593b2
|
|
BLAKE2b-256 checksum How to use checksums |
34c16c2d75ef0431aea3eed741dbc8f18477c41539d6c7ef1439cf50cbee1581
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.1
|