Skip to content

Commit

Permalink
Added documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sarcodian committed Jan 23, 2017
1 parent 9dd03ff commit f901ecd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
8 changes: 8 additions & 0 deletions challenge_10/python/sarcodian/READ.me
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Takes a string and checks to see every openning {,(,[
has a corresponding closing ],),}.

Does this by appending a list of every openning and deletes
the last element when it comes accross a matching closing.

If the closing is off a different type or if the list has
elements remaining then returns False.
7 changes: 6 additions & 1 deletion challenge_10/python/sarcodian/src/challenge_10.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
def brackets():

'''
Asks for a string and returns True/False.
True if all openning brackets {([ have a matching ])},
else returns False
'''

a_string = input("Please enter a string to process: ")

brac_dict = {
Expand Down

0 comments on commit f901ecd

Please sign in to comment.