News for hackers. Stuff that matters.
Re:Evolution of a Python programmer by notaddicted on Friday January 29, 2010 @02:13PM (#1087266)

  # "close enough" programmer
  import math
  def fact(x):
    math.sqrt(2*math.pi*n) * math.pow(n/math.e, n)
  print fact(6)

  # lazy-er programmer
  def fact(x):
    factorials = {6:720} # found on my calculator, add more as they come up
    if factorials.has_key(x):
      return factorials[x]
    else:
      raise NotImplementedError
  print fact(6)
Re:Evolution of a Python programmer by Vivtek on Saturday January 30, 2010 @10:03PM (#1089861)
NotImplementedError - that kills me!