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
| class Pet(object): | |
| def __init__(self, name, species): | |
| self.name = name | |
| self.species = species | |
| def getName(self): | |
| return self.name | |
| def getSpecies(self): |
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
| #!/usr/bin/env python | |
| """A simple python script template. | |
| """ | |
| from __future__ import print_function | |
| import os | |
| import sys | |
| import argparse |
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
| ''' | |
| Write a function that given an input set of integers with 4 entries and a desired | |
| target sum, returns the set of combinations of any length that add up to that target sum. | |
| Each set of combinations must be specified by the indexes (0-based) of the integers. | |
| Assumptions: | |
| - range for elements_of_list: range(0,10e6) | |
| - elements can repeat, and do not have to be sorted | |
| ''' |