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.
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.
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 abu_project-1.46.tar.gz.
File metadata
- Download URL: abu_project-1.46.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a20e01f4ea3a7af8b042eaa4fc4f263beeb10ff3f1bb25f79aa3a64570422f3b
|
|
| MD5 |
e41cb2a67645a227718a4163dec76178
|
|
| BLAKE2b-256 |
e0453dd345cb5b6b842f2352322ec01539c07567de644844ae9a1f36e8a4b4e0
|
File details
Details for the file abu_project-1.46-py3-none-any.whl.
File metadata
- Download URL: abu_project-1.46-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a3b430081e8ac6c6aaedcb1034accadd78dae856133f43cf721ec33108593b2
|
|
| MD5 |
016d9883e46620ac4bf06c244f75e203
|
|
| BLAKE2b-256 |
34c16c2d75ef0431aea3eed741dbc8f18477c41539d6c7ef1439cf50cbee1581
|