Question
in python programming 3.6.3 using beginning code only You are going to create a cryptogram. If you are unsure what a cryptogram is, look this
in python programming 3.6.3 using beginning code only
You are going to create a cryptogram. If you are unsure what a cryptogram is, look this up via google or wikipedia. This cryptogram will involve two alphabets. One is the standard alphabet and one is a 'scrambled' version of the alphabet. To translate a quote into its cryptogram form you have to find the equivalent index in its 'scrambled' alphabet. You will need to navigate through upper- and lower-case, as well as punctuation.
import random alphabet = "abcdefghijklmnopqrstuvwxyz" scrambled = list(alphabet) random.shuffle(scrambled) print(scrambled) # shown so you can see the mapping # a sample quote by Dr. Seuss: quote="Don't cry because it's over, smile because it happened." crypto = "" # Loop through the quote, and on each character determine # the crypto-equivalent character, or if it's punctuation, # treat "as-is". When you find the mapped character (use the # index!), add it to the crypto string. Break this problem # down into parts.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started