#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2010 Doug Hellmann. All rights reserved. # """Logarithms """ #end_pymotw_header import math print math.log(8) print math.log(8, 2) print math.log(0.5, 2)