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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 00:50, Cnolteb5663
Is one of the most injurious events that can happen to a person in a crash.
Answers: 1
image
Computers and Technology, 22.06.2019 17:00, hollodom9654
Which of the following is not contained on the slide show toolbar? a. next button b. slide button c. close button d. pen tool
Answers: 1
image
Computers and Technology, 23.06.2019 22:00, bb1593
Jackson, who works in the finance department of a company, is holding a seminar for other employees on how to file taxes. only three employees sign up to attend the seminar. which device can he use to share his presentation with a group of three employees?
Answers: 1
image
Computers and Technology, 24.06.2019 02:30, cardsqueen
Which option completes the explanation for conflict of interest in an organization
Answers: 1
You know the right answer?
#Write a function called mock. mock should take one #parameter, a string. You may assume that the st...

Questions in other subjects: