Question: This is a PYTHON coding question Please write a function called questionEverything that accepts a single argument: a string. Your function should create a new

This is a PYTHON coding question

Please write a function called questionEverything that accepts a single argument: a string. Your function should create a new string where all upper-case characters have been changed to lower-case characters and all lower-case characters have been changed to upper-case characters. It should also replace any non-alphanumeric characters (other than spaces) with a "?" character. Hint: Use the upper(), lower(), isupper(), islower(), and isalnum() functions. For example, if your input string were "Hello, World!", your function would return "hELLO? wORLD?"

Test code (to be executed after your solution):

print(questionEverything("Hello, World!")) print(questionEverything("Single-step method of RNA isolation by acid guanidinium thiocyanate-phenol-chloroform extraction.")) print(questionEverything("A simple method, for the isolation and purification of total lipides, from animal tissues.")) print(questionEverything("Clustal W: improving the sensitivity of progressive multiple sequence alignment through sequence weighting, position-specific gap penalties and weight matrix choice.")) print(questionEverything("Basic local alignment search tool."))

Expected output:

hELLO? wORLD? sINGLE?STEP METHOD OF rna ISOLATION BY ACID GUANIDINIUM THIOCYANATE?PHENOL?CHLOROFORM EXTRACTION? a SIMPLE METHOD? FOR THE ISOLATION AND PURIFICATION OF TOTAL LIPIDES? FROM ANIMAL TISSUES? cLUSTAL w? IMPROVING THE SENSITIVITY OF PROGRESSIVE MULTIPLE SEQUENCE ALIGNMENT THROUGH SEQUENCE WEIGHTING? POSITION?SPECIFIC GAP PENALTIES AND WEIGHT MATRIX CHOICE? bASIC LOCAL ALIGNMENT SEARCH TOOL?

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!