Question: (1) Implement the function abbreviate that takes the name of a month as input and returns its three-letter abbreviation. In fact, it should take any
(1) Implement the function abbreviate that takes the name of a month as input and returns its three-letter abbreviation. In fact, it should take any string as input and return its first three characters, as these examples illustrate: assert assert abbreviateC'JanuaryJan abbreviate('abril.)--'abr (2) Implement the function of that square. Find area square that takes as input a number representing the length of one side of a square and returns the area assert find area square(1)1 assert find area square(5)25 ment the function find area.circle that nd returns the area of that circle. (If you dont remember the formula, Google it.) assert find area circte(1)3.14159 assert find area.circle(5) 78.53975 (Your values may vary slightly depending on what value you use for pi.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
