Skip to content

Instantly share code, notes, and snippets.

@azizzoaib786
Last active June 14, 2022 07:31
Show Gist options
  • Save azizzoaib786/5bff5db6d8cfaa54fbe312068051f61a to your computer and use it in GitHub Desktop.
Save azizzoaib786/5bff5db6d8cfaa54fbe312068051f61a to your computer and use it in GitHub Desktop.
Code Challengues

Code Challengue 1 - Path Extractor

This kata requires you to write an object that receives a file path and does operations on it. NOTE FOR PYTHON USERS: You cannot use modules os.path, glob, and re

The purpose of this kata is to use string parsing, so you're not supposed to import external libraries. I could only enforce this in python.

>>> master.extension()
'png'
>>> master.filename()
'house'
>>> master.dirpath()
'/Users/person1/Pictures/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment