Question: (Use Python) 1. Write function month() that takes no arguments. It will repeatedly ask the user to enter an abbreviation for a month of the

(Use Python)

1. Write function month() that takes no arguments. It will repeatedly ask the user to enter an abbreviation for a month of the year (Jan, Feb, Mar, Apr, May, Jun, , Dec) and then print the corresponding month.

>>> month ()

Enter month abbreviation: Jan

January

Enter day abbreviation: Feb

February

Enter day abbreviation:

2. The mirror image of string vow is string wov, and the mirror image wood is string boow. The mirror image of string bed cannot be represented as a string, however, because the mirror image of e is not a valid character.

Develop function mirror() that takes a string and returns its mirror image but only if the mirror image can be represented using letters in the alphabet.

>>> mirror('vow')

'wov'

>>> mirror('wood')

'boow'

>>> mirror('bed')

'INVALID'

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!