[SOLVED] SOLVED:codeIt function

15.99 $

Programming resource
Digital learning resource
Category:
Practical programming resource
Suitable for guided study and reference
Tutor guidance available when needed

Description

5/5 - (1 vote)

Write a function called codeit that takes a string txt as input and returns another string coded as output. The function reverses the alphabet: It replaces each ‘a’ with ‘z’, each ‘b’ with ‘y’, each ‘c’ with ‘x’, etc. The function must work for uppercase letters the same way, but it must not change any other characters. Note that if you call the function twice like this str = codeit(codeit(txt)) then str and txt will be identical.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.