This file contains 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
#!/usr/local/bin/python3 | |
# ---------------------------------- MODULE IMPORTS ---------------------------------------- # | |
import sys, cProfile | |
from functools import reduce | |
# --------------------------------- CHALLENGE CONTEXT -------------------------------------- # | |
# Using the Python language, have the function FirstFactorial(num) take the num parameter being | |
# passed and return the factorial of it (e.g. if num = 4, return (4 * 3 * 2 * 1)). For the test | |
# cases, the range will be between 1 and 18 and the input will always be an integer. |
This file contains 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
#!/usr/local/bin/python3 | |
import re, cProfile | |
# --------------------------------- CHALLENGE CONTEXT -------------------------------------- # | |
# Have the function LongestWord(sen) take the sen parameter being passed and return the | |
# largest word in the string. If there are two or more words that are the same length, | |
# return the first word from the string with that length. Ignore punctuation and assume | |
# sen will not be empty. |
This file contains 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 abc, time, sys, itertools | |
class Container (object): | |
__meta__ = abc.ABCMeta | |
level = None | |
original_level = None | |
@abc.abstractmethod |