This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import re | |
| from email.utils import format_datetime, parsedate_to_datetime | |
| import dateutil.parser | |
| path = os.getcwd() | |
| emlFiles = [] | |
| for (root, subdirs, files) in os.walk(path): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def numChars(s, c): | |
| count = 0 | |
| for i in s: | |
| if c == i: | |
| count += 1 | |
| return count | |
| print(numChars('oh heavens', 'h')) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ | |
| Spyder Editor | |
| This is a temporary script file. | |
| """ | |
| import numpy as np | |
| from pandas import Series | |
| from scipy.stats import rv_discrete |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/python | |
| # How many distinct 7-digit numbers can you dial on a standard phone (layout: 123\\456\\789\\*0#) | |
| # if you must start at the '0' and move only as a knight does in chess (an 'L')? | |
| # (Numbers mustn't include * or #.) | |
| successor = {} | |
| successor[0]=[4,6] | |
| successor[1]=[6,8] | |
| successor[2]=[7,9] |