The pin extractor uses poems to create generic pin codes using the word length of each word in a poem.
This project was built during my python cartification course. The simple pin extractor uses multiple common functions, like split() enumerate(), len(), str(), += string concatenation, [] list creation, append(), """ multi line strings, and return. This project teaches the following:
- string splitting
- line by line process
- index_based access
- conditional logic
- function strucutre
- basic algorithm design
- Splits each poem into lines.
- Splits each line into words.
- If the word at the current line exists -> add the length of that word to the pin.
- Else, it should add '0'.
- Repeat for all poems to return the secret code or other words, the pin.
- Make sure you have Python 3 installed on your system.
- Clone this repository: git clone https://github.com/your-username/Simple-Pin-Extractor.git
- Navigate into the project folder: cd Simple-Pin-Extractor
- Run the script: python pin_extractor.py
This project was created to practice string processing, algorithm design, and working with multiline text in Python.
Suggestions for new features, optimizations, or improvements are welcome. Feel free to open an issue or submit a pull request with your ideas.