Computers and Technology

#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!

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 01:10, brooklynneramos9956
Problem 1 - hashing we would like to use initials to locate an individual. for instance, mel should locate the person mark e. lehr. note: this is all upper case. generate a hash function for the above using the numbers on your telephone. you know, each letter has a number associated with it, so examine your telephone keypad. generate 512 random 3 letter initials and take statistics on a linked list array size 512 to hold this information report how many have no elements, 1 element, 2 elements, does this agree with the hashing statistics distribution?
Answers: 1
image
Computers and Technology, 23.06.2019 08:30, sofigaviria05
All of these are true about using adhesive except: a. dissimilar materials can be joined. b. mixing tips are product and material specific. c. a specific application gun may be required. d. two-part adhesives are dispensed using two mixing tips
Answers: 3
image
Computers and Technology, 25.06.2019 08:10, SithLeo
The __ is the section of a cpu core that performs arthimetic involving integers and logical operations
Answers: 2
image
Computers and Technology, 25.06.2019 12:00, narwhalebearp5871i
Jenny is the project manager and her company. she needs to break her current project into parts that her employees can work on. if jenny brings her project into as many small parts, but will lead to? a. increased quality control b. macro-management c. project disruption d. micro-management
Answers: 1
Do you know the correct answer?
#Write a function called mock. mock should take one #parameter, a string. You may assume that the st...

Questions in other subjects: