forked from course-work/week1
8 lines
374 B
Python
Executable File
8 lines
374 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
def titlecase( string, exceptions ):
|
|
pass
|
|
|
|
assert( titlecase( 'the quick brown fox jumps over the lazy dog', ['jumps', 'the', 'over'] ) == 'The Quick Brown Fox jumps over the Lazy Dog' )
|
|
assert( titlecase( 'THE vitamins ARE IN my fresh CALIFORNIA raisins', ['are', 'is', 'in', 'your', 'my'] ) == 'The Vitamins are in my Fresh California Raisins' )
|