Skip to content

justisCrocker/right_shift_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

right_shift_python

A recreation of iMocha coding challenge with Revature.

Write your code in main.py, and check HELP.md for help with running tests

Bellow is the entire original prompt copied

Brute Force: Right Shift

An upper-case character A is given. Shift character K times towards its right. Print the final character.

Note Shifting "Z" by one will lead to "A" and so on.
A belongs to [A-Z].

Function Description In the provided code snippet, implement the provided rightShift(...) method using the variables to print the final character. You can write your code in the space below the phrase “WRITE YOUR LOGIC HERE”.

There will be multiple test cases running so the Input and Output should match exactly as provided. The base Output variable result is set to a default value of -404 which can be modified. Additionally, you can add or remove these output variables.

Input format
The first line contains character A and integer K.

Constraints 1 <= K <= 100

Sample Input A 1 -- denotes the character A and the integer K.

Output format The output contains the character after shifting it K times.

Sample Output B

Explanation Shifting A by 1 will lead to B. Hence, the output is B.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages