Assignment 19 — function implementation

Due Sunday, October 28


Module take_two.py


Function signum( x )

f( -3.5 ): -1

f( 0 ) : 0

f( 5 ): 1



Function mid( s )

mid( 'abcdef' ): 'cd'

mid( 'abcde' ): 'c'