Homework 3a - Str Warmups

All parts of HW3 are due Wed Oct 16th at 11:55 pm.

This first part is made of 4 string functions, in the "strhw" section on the server: str hw

For the first 2 problems, use the pick-off strategy to detect and return the answer for the various cases. These do not require loops. Note that an index number, such as 2, is in-bounds in a string if 2 < len(s). Problem (2) foreshadows a strategy we'll use in the Grid problems, with a return False as its last line. Problem (4) uses reversed() which we'll show in Fri lecture.

> Turn In HW3 strhw