Assignment 21 — function implementation

Due Friday October 23


Module double.py


Function longer( s, t )

longer( abcd, ef ): abcd

longer( hij, klmnnop ): klmnop

longer( str, int ): str

longer( int, str ): int



Function summation( n )

0 + 1 + ... + n.

summation( 5 ): 15

summation( 1 ) : 1

summation( 0 ): 0


 


  © 2020 Jim Cohoon   Resources from previous semesters are available.