Archives

Cracking the Coding Interview: Unscripted Interview Video Solutions

Anagram word search problem Get derivative for Term Non Consecutive sequence with the largest sum Ransome note

Rate this:

Read More

PyCon 2012 Beginner Python Solutions

sample.py import types import unittest class SampleTest(unittest.TestCase): def test_example(self): “”” An example of how to do the tests “”” # Variables # # Create a variable “name“ that is assigned to the string # “Matt”. # ================================ name = “Matt” self.assert_(isinstance(name, types.StringType)) self.assertEquals(name, ‘Matt’) if __name__ == ‘__main__’: unittest.main() variables.py import unittest class TestVariables(unittest.TestCase): def […]

Rate this:

Read More