|
Post by AxonMega on Jun 27, 2017 13:09:49 GMT
You must write a function that will receive a string made entirely out of single or double quotation characters. The function should return true if the quotations are paired correctly, and otherwise return false. Example:
print(pairedCorrectly([["''"]])) --> true
print(pairedCorrectly([["'"']])) --> false
|
|
|
Post by Bit on Jun 27, 2017 16:15:45 GMT
Parens: Part 2
|
|
|
Post by AxonMega on Jun 28, 2017 8:23:29 GMT
Pretty much, although hopefully just as challenging.
|
|
|
Post by Bit on Jun 28, 2017 15:14:43 GMT
Literally just as challenging, my old function can be adapted to work with this.
|
|