Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database And Transact SQL

Authors: Lucy Scott

1st Edition

1974679985, 978-1974679980

More Books

Students also viewed these Databases questions