Exercises

0 / 10

Recursive procedure that returns the number of H in a string of heads (H) or tails (T) outcomes. This must be a recursive routine. You...

0 / 50

Complete the following function. When given aString, return True if it ends in "ly". Return False otherwise.

0 / 50

Complete the following function. Given aString, return the first half of characters in that string (the string "woohoo" yields "woo")....

0 / 75

Complete the following function. Given aString, return a copy of aString where any character next to a star (*) and all stars themselves...

0 / 50

Given an outside string of length 4, such as "(())", and an inside string, return a new string where the inside is squeezed in the middle...