Strings - Solutions
Exercise 1
Solution
A script abbreviating a term
Shorter solution using a list comprehension
Simple for ... in ...: loops can sometimes be replaced by list comprehensions.
A script abbreviating a term
Exercise 2
Solution
A script to reverse a string character by character