Skip to content

brianmo3530-ctrl/Simple-Pin-Extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

The simple pin extractor from poems

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

How it works in steps:

  1. Splits each poem into lines.
  2. Splits each line into words.
  3. If the word at the current line exists -> add the length of that word to the pin.
  4. Else, it should add '0'.
  5. Repeat for all poems to return the secret code or other words, the pin.
Untitled whiteboard 2026-01-02 (3)

Installation instructions

  1. Make sure you have Python 3 installed on your system.
  2. Clone this repository: git clone https://github.com/your-username/Simple-Pin-Extractor.git
  3. Navigate into the project folder: cd Simple-Pin-Extractor
  4. Run the script: python pin_extractor.py

Purpose

This project was created to practice string processing, algorithm design, and working with multiline text in Python.

Contributing a helping hand

Suggestions for new features, optimizations, or improvements are welcome. Feel free to open an issue or submit a pull request with your ideas.

About

A very simple pin-extractor from poems.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages