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.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


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.46.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.46-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

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

Hashes for abu_project-1.46.tar.gz
Algorithm Hash digest
SHA256 a20e01f4ea3a7af8b042eaa4fc4f263beeb10ff3f1bb25f79aa3a64570422f3b
MD5 e41cb2a67645a227718a4163dec76178
BLAKE2b-256 e0453dd345cb5b6b842f2352322ec01539c07567de644844ae9a1f36e8a4b4e0

See more details on using hashes here.

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

Hashes for abu_project-1.46-py3-none-any.whl
Algorithm Hash digest
SHA256 1a3b430081e8ac6c6aaedcb1034accadd78dae856133f43cf721ec33108593b2
MD5 016d9883e46620ac4bf06c244f75e203
BLAKE2b-256 34c16c2d75ef0431aea3eed741dbc8f18477c41539d6c7ef1439cf50cbee1581

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