Skip to main content

Method to calculate Faculty

Project description

Sure! Here's a tailored README.md for your recursive Fibonacci calculator, based on the example you provided:


# 🌀 Recursive Fibonacci Calculator - `fibonacci_Enoch12`

[![Python Version](https://img.shields.io/badge/Python-3.6%2B-blue.svg)](https://www.python.org/downloads/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)

A simple Python script to calculate Fibonacci numbers using recursion.  
Perfect for learning how recursion works in Python and understanding Fibonacci sequences.

---

## 🚀 Features

- Recursive implementation of Fibonacci logic
- Beginner-friendly structure and code
- Interactive command-line input
- No external dependencies

---

## 📂 File Structure

📁 fibonacci-recursive/ │ ├── fibonacci_Enoch12.py # Main Python script └── README.md # Project documentation


---

## 🧾 Code Overview

```python
def fibonacci(n):
    if n <= 0:
        return 0
    elif n == 1:
        return 1
    else:
        return fibonacci(n - 1) + fibonacci(n - 2)

def main():
    try:
        count = int(input("How many Fibonacci numbers should be printed? "))
        print("Fibonacci sequence:")
        for i in range(count):
            print(f"fibonacci({i}) = {fibonacci(i)}")
    except ValueError:
        print("Please enter a valid integer.")

if __name__ == "__main__":
    main()

🧪 Sample Output

How many Fibonacci numbers should be printed? 7
Fibonacci sequence:
fibonacci(0) = 0
fibonacci(1) = 1
fibonacci(2) = 1
fibonacci(3) = 2
fibonacci(4) = 3
fibonacci(5) = 5
fibonacci(6) = 8

🔧 How to Use

  1. Clone the repository:
git clone https://github.com/Enoch1234455/fibonacci-recursive.git
cd fibonacci-recursive
  1. Run the script:
python fibonacci_Enoch12.py
  1. Enter how many Fibonacci numbers you want when prompted.

💡 Enhancements (Optional Ideas)

Expand this project by:

  • Adding memoization or dynamic programming to optimize performance
  • Implementing unit tests with unittest or pytest
  • Providing graphical output using matplotlib
  • Creating a CLI using argparse for more flexible input

📜 License

This project is licensed under the MIT License.


🙌 Contributing

Feel free to fork the repo, open issues, or submit pull requests. Contributions are welcome!


📬 Contact

Made with ❤️ by Enoch


---

Let me know if you'd like help generating a `LICENSE` file or optimizing the recursive code with memoization.

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

fibonacci_enoch12-0.0.1.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

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

fibonacci_enoch12-0.0.1-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file fibonacci_enoch12-0.0.1.tar.gz.

File metadata

  • Download URL: fibonacci_enoch12-0.0.1.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for fibonacci_enoch12-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2a207bab891f21718c24db3aea1388419df998763f4dc6d5b5989fdec4ffcc9c
MD5 5d084a9a46ec3aeb1e6d1ecf9251fd70
BLAKE2b-256 308857c65d52c7e2c4e402be34b44d83695fde3598357c7c734817fd1c7485c6

See more details on using hashes here.

File details

Details for the file fibonacci_enoch12-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for fibonacci_enoch12-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 26f39439c921e02fd7d7e05f275da34bdfbfcd673d1592fde9de0ae425cdc222
MD5 1478a280a7d3722a0613e44cb8472577
BLAKE2b-256 d2f41710115042d2012ff0f12b70e9554584f2b46735782f70762f96decd271c

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