Write a function month that takes a number between 1 and 12


Programming Language is Python

Write a function month() that takes a number between 1 and 12 as input and returns the three-character abbreviation of the corresponding month. Do this without using an if statement, just string operations. Hint: Use a string to store the abbreviations in order.

Write a function average() that takes no input but requests that the user enter a sentence. Your function should return the average length of a word in the sentence.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Write a function month that takes a number between 1 and 12
Reference No:- TGS01541571

Now Priced at $10 (50% Discount)

Recommended (99%)

Rated (4.3/5)