Have the function CaesarCipher (str, num) take the ste parameter and perform a Caesar Cipher shift on it using the num parameter as the shifting number. A Caesar Cipher works by shifting each letter in the string N places in the alphabet (in this case N will be num). Punctuation, spaces, and capitalization should remain intact. For example if the string is "Caesar Cipher and num is 2 the output should be "Ecguct Ekrjgt".

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Computer Science
 
please do code in python
paste code in here and take screenshot of code and output
Caesar Cipher
Have the function
Caesar Cipher (str, num) take the
str parameter and perform a Caesar
Cipher shift on it using the num
parameter as the shifting number. A
Caesar Cipher works by shifting each
letter in the string N places in the
alphabet (in this case N will be num).
Punctuation, spaces, and
capitalization should remain intact.
For example if the string is "Caesar
Cipher and num is 2 the output
should be "Ecguct Ekrjgt".
Once your function is working, take
the final output string and
concatenate it with your
ChallengeToken, and then replace
1
2
3
4
5
6
7
def CaesarCipher (strParam, num):
# code goes here
return strParam
#keep this function call here
print CaesarCipher (raw_input())
Start
Transcribed Image Text:Caesar Cipher Have the function Caesar Cipher (str, num) take the str parameter and perform a Caesar Cipher shift on it using the num parameter as the shifting number. A Caesar Cipher works by shifting each letter in the string N places in the alphabet (in this case N will be num). Punctuation, spaces, and capitalization should remain intact. For example if the string is "Caesar Cipher and num is 2 the output should be "Ecguct Ekrjgt". Once your function is working, take the final output string and concatenate it with your ChallengeToken, and then replace 1 2 3 4 5 6 7 def CaesarCipher (strParam, num): # code goes here return strParam #keep this function call here print CaesarCipher (raw_input()) Start
Cipher and num is 2 the output
should be "Ecguct Ekrjgt".
Once your function is working, take
the final output string and
concatenate it with your
ChallengeToken, and then replace
every fourth character with an
underscore.
Your ChallengeToken: svid8ef8a5
Examples
Input: "Hello" & num = 4
output: Lipps
Final Output: Lip_ssv_d8e_6a5
Input: "abc" & num = 0
Output: abc
Final Output: abc_vid_ef6_5
Python
1234567
def CaesarCipher (strParam, num):
# code goes here
return strParam
#keep this function call here
print CaesarCipher (raw_input())
Transcribed Image Text:Cipher and num is 2 the output should be "Ecguct Ekrjgt". Once your function is working, take the final output string and concatenate it with your ChallengeToken, and then replace every fourth character with an underscore. Your ChallengeToken: svid8ef8a5 Examples Input: "Hello" & num = 4 output: Lipps Final Output: Lip_ssv_d8e_6a5 Input: "abc" & num = 0 Output: abc Final Output: abc_vid_ef6_5 Python 1234567 def CaesarCipher (strParam, num): # code goes here return strParam #keep this function call here print CaesarCipher (raw_input())
Expert Solution
steps

Step by step

Solved in 5 steps with 2 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education