Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dms-codes/pola-pak-dengklek
Fibonacci Pattern Generator This Python script generates a Fibonacci pattern based on user input 'n'. It calculates the Fibonacci sequence and creates a pattern using digits from 0 to 9.
https://github.com/dms-codes/pola-pak-dengklek
fibonacci pattern python
Last synced: 2 days ago
JSON representation
Fibonacci Pattern Generator This Python script generates a Fibonacci pattern based on user input 'n'. It calculates the Fibonacci sequence and creates a pattern using digits from 0 to 9.
- Host: GitHub
- URL: https://github.com/dms-codes/pola-pak-dengklek
- Owner: dms-codes
- Created: 2022-10-26T16:07:49.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-01T10:28:38.000Z (over 1 year ago)
- Last Synced: 2023-10-01T11:45:30.014Z (over 1 year ago)
- Topics: fibonacci, pattern, python
- Language: Python
- Homepage: https://github.com/dms-codes/pola-pak-dengklek
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fibonacci Pattern Generator
This Python script generates a Fibonacci pattern based on user input 'n'. It calculates the Fibonacci sequence and creates a pattern using digits from 0 to 9.
## Usage
1. Run the script:
```bash
python script.py
```2. Enter a value for 'n' when prompted. This value represents the number of rows in the Fibonacci pattern.
3. The script will perform the following actions:
- Calculate the Fibonacci sequence up to the nth term.
- Generate a pattern using digits 0 to 9, repeating as necessary.
- Print the Fibonacci pattern row by row.4. The Fibonacci pattern will be displayed in the console.
## Customization
- You can customize the behavior of the script by modifying the value of 'n' in the input prompt to generate patterns with different row counts.
## Example Output
For 'n' equal to 5, the script generates the following Fibonacci pattern:
```
0
1
23
456
78901
```## License
This script is provided under the [MIT License](LICENSE).
```Please adapt the script and README.md to your specific use case or requirements.