Question: I need help writing this python code. It needs to be in python. Thanks! # The swap () function accepts a String argument displays two
I need help writing this python code. It needs to be in python. Thanks!
# The swap () function accepts a String argument displays two (2) variation: # All occurences of its first character changed to '$', except for the first chracter itself # The String reversed, in alternating UPPER/lower case
#The code () function accepts a String argument and returns one (1) String. The co+ # Converts all characters in the String to UPPER case # Build an encoded version of the String provided by shifting each character (within the ASCII Table) by a value equal to the number of words (3 words=shift all characters by 3) # Return the encoded string
# The main () function accepts no arguments and performs the following tasks # Display a description of the program's fuctionality # Prompt the user for a String # Call the swap () function using the string as an argument # Call the code () function using the String as an argument and assigning the value returned as a variable # Displaying the value returned by the code() function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
