def func():
return 'hi'
func()
def greet(who):
return 'Hello, {}'.format(who)
greet('Alice')
def fibbonaci(n):
"""Compute Fibbonaci numbers"""
if n <= 1:
return 1
else:
return fibbonaci(n-1) + fibbonaci(n-2)
fibbonaci(7)
import math
def log(n, base=math.e):
return math.log(n) / math.log(base)
log(8, 2)
log(8)
math.log(8)