subject

#In the previous problem, you wrote a function that would #convert text like "abcd efgh ijkl" into "AbCd eFgH IjKl". # #In the previous problem, you could assume the original #string would be all lower-case, with no punctuation. # #Revise your function so that it no longer makes these #assumptions. It should leave any punctuation marks or #numerals unchanged, and it should change the case of #every letter at an even index. That means if the letter #is initially uppercase, it should be converted to lower #case. # #For example: mock("Abcd. Efgh.. Ijkl!") would return #"abCd. efGh.. IJkL!". The even-index letters (A, C, E, g, #j, l) changed case, all other characters were unchanged. # #HINT: Lowercase letters always have an ordinal between #97 ("a") and 122 ("z"). Uppercase letters always have an #ordinal between 65 ("A") and 90 ("Z"). #Write your function here!

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 23:00, sarahnd6907
Explain briefly why you cannot expect to find a previous version of every file with which you work.
Answers: 1
image
Computers and Technology, 22.06.2019 06:00, Wolfie215
Which of the following is a way that advancements in technology improve humans' ability to measure air quality and protect human health? a. air quality data gathered by new instruments can be used to reduce exposure to pollutants. b. new technologies enable natural and human-made pollution sources to be located and monitored. c. air quality data gathered by new instruments can be used to predict trends in pollution over time. d. new technologies allow governments to make informed decisions about the regulation of pollution. (choose more than one)
Answers: 2
image
Computers and Technology, 23.06.2019 11:00, jaygamer37
What is the name of the sound effect that danny hears
Answers: 1
image
Computers and Technology, 23.06.2019 20:30, batmandillon21
1. for which of the following are you not required to signal beforehand? a. changing lanes b. speeding up c. stopping
Answers: 2
You know the right answer?
#In the previous problem, you wrote a function that would #convert text like "abcd efgh ijkl" into "...

Questions in other subjects: