138k views
0 votes
Write a function called cipher(phrase,shift)that accepts two parameters: a string phrase and an integer shift.The integer shift can be positive, negative or zero.

User Pratt
by
5.2k points

1 Answer

3 votes

Answer:

Following is given the code according to requirement.

The code is attached as an image so that the indentation is understood by the user. Comments are given inside the code where necessary.

The output of code is also attached as well in end.

I hope it will help you!

Step-by-step explanation:

Write a function called cipher(phrase,shift)that accepts two parameters: a string-example-1
Write a function called cipher(phrase,shift)that accepts two parameters: a string-example-2
User Carl Papworth
by
5.3k points