Posts

Rgular Expressions / Regex / Regexp

                                        ######## CHAPTER 11 ######## REGULAR EXPRESSIONS -- A Fun and Interesting Topic ######## 5:55:24 # Regular Expression / Regex / Regexp # In computing they provides a concise and flexible means for matching "strings" of text,     # SUch as: particular characters, words, or patterns of characters. # They (regex) are written in formal language that can be interpreted by a "regex-processor". # Uses of Regex:     # you can do smart searching # Regex are really clever "wild card" expressions for matching and parsing strings.     # They are almost programmable wild card expressions, there is no looping, but there is looping.         # and there is all those implicit things. e.g. you say look for patterns that look like this or that.             # and then you get back things th...

Tuples

######## CHAPTER 10 ######## TUPLES ######## 5:23:06 # ============================================ # ============================================ # ============================================ # ============================================ # Tuples are like lists, having elements which are indexed starting at 0. # Differences:     # There are no square brackets. instead () are used.     # Tuples are immutable - similar to string.         # Reason: Efficiency.     # Functions not allowed with Tuples.         # sorting  --  .sort()         # appending --  .append()         # reversing  --  .reverse() # Allowed with Tuple     # 'count'     # 'index' # whereas allowed with list     # append     # count     # extend     # index     # insert     # pop     # remove  ...