Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a function that translates an English sentence to leetspeak. Hints: You will want to turn your sentence into a list of words, replace those,

image text in transcribedimage text in transcribed

Write a function that translates an English sentence to leetspeak. Hints: You will want to turn your sentence into a list of words, replace those, and then turn it back into a sentence before replacing letters. To turn a list of words into a sentence, you can use the syntax: new sentence"".join(old list) This will join all the values in "old list into a string, separated by spaces. If you want to determine if a word is in your dictionary, use "if word in dictionary.keys0 You may assume that the sentences are, much like YouTube comments, devoid of any punctuation or capitalization Use the following general algorithm: Replace the following words . elite -> leet the-> teh hacker-> haxor hack -> hax own>pwn owned ->pwned . e dude - dood rocks-> roxxorz 1md3 most awesome course ever If any word ends with an"s', replace it with a Replace the following letters

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

Ehs 2.0 Revolutionizing The Future Of Safety With Digital Technology

Authors: Tony Mudd

1st Edition

B0CN69B3HW, 979-8867463663

More Books

Students also viewed these Databases questions

Question

What is Ramayana, who is its creator, why was Ramayana written?

Answered: 1 week ago

Question

To solve by the graphical methods 2x +3y = 9 9x - 8y = 10

Answered: 1 week ago

Question

Why does sin 2x + cos2x =1 ?

Answered: 1 week ago

Question

What are DNA and RNA and what is the difference between them?

Answered: 1 week ago

Question

What are some of the possible scenes from our future?

Answered: 1 week ago