Write a function named formAdverb(string) that accepts anadjective, forms an adverb from the adjective, and returns theadverb.
a. In most cases, an adverb is formed by adding -ly to anadjective. For example, quick → quickly
b. If the adjective ends in -y, replace the y with i and add-ly. For example, easy → easily
c. If the adjective ends in -able, -ible, or -le, replace the -ewith -y. For example, gentle → gently
d. If the adjective ends in -ic, add -ally. For example, basic →basically. In python
Answer