subject

#Write a function called mock. mock should take one #parameter, a string. You may assume that the string will #have only lowercase letters and spaces. # #Your function should return the same string, but any letter #at an even index should be converted to uppercase. # #For example: mock("abcd efgh ijkl") would return #"AbCd eFgH IjKl". # #Remember, you can use the ordinal function ord() to get the #number associated with a single letter. For example, #ord("a") returns 97. The number associated with lowercase #letters is always 32 larger than the number associated with #the equivalent uppercase letter. ord("a") is 97, and #ord("A") is 65. ord("z") is 122, and ord("Z") is 90. # #Remember, you can use the character function chr() to #convert a number back to a letter. For example, chr(65) will #return "A". # #HINT: Treat all characters the same initially, then worry #about taking care of spaces afterwards. #Write your function here!

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
Amanda needs to create an informative print brochure for her local library’s fundraiser dinner. what critical detail must she have before she starts designing the brochure?
Answers: 1
question
Computers and Technology, 23.06.2019 21:20
For positive constants a and b, the force between two atoms in a molecule is given f(r) = −a r2 + b r3 , where r > 0 is the distance between the atoms. note: a and b are upper case letters. (a) find f '(r) = (b) find the critical point for f(r). r = (c) find f ''(r) = (d) find the value of r so that f ''(r) = 0.
Answers: 1
question
Computers and Technology, 25.06.2019 01:30
Once a vulnerability has been identified by nessus, where would you check for more information regarding the identified vulnerability, exploits, and any risk mitigation solution?
Answers: 1
question
Computers and Technology, 25.06.2019 04:00
What was the name of the first computer (machine) language?
Answers: 2
You know the right answer?
#Write a function called mock. mock should take one #parameter, a string. You may assume that the st...
Questions
question
Mathematics, 19.12.2019 01:31
Questions on the website: 13722367