Took out redundant print lines
Made ex17 a one liner