diff options
Diffstat (limited to 'progs/unparsable_programs/a889.py')
-rw-r--r-- | progs/unparsable_programs/a889.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/unparsable_programs/a889.py b/progs/unparsable_programs/a889.py new file mode 100644 index 0000000..e9c0151 --- /dev/null +++ b/progs/unparsable_programs/a889.py @@ -0,0 +1,6 @@ +def capitalize_first_last_letters(str1):
+ str1 = result = str1.title()
+ result = ""
+ for word in str1.split():
+ result += word[:-1] + word[-1].upper() + " "
+ return result[:-1]
\ No newline at end of file |