EASY Caesar Cipher in Python

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

thanks brother this helped me a lot to get started with an assignment cheers :) really appreciated it

dereknguyen
Автор

This is a great video! Trying to learn python rn just because, and what’s harder to learn is how to program cleanly - which is what this video seems to be all about

ToriKo_
Автор

Tremendously helpful with my assignment and my understanding, thank you so much!

bunburyLZD
Автор

thanks dude this help me with my project

mrmordernwarfare
Автор

def caesar(rotate_string, number_to_rotate_by):
return rotate_string.translate(str.maketrans(string.ascii_lower, "{}{}".format(string.ascii_lower[number_to_rotate_by:], string.ascii_lower[:number_to_rotate_by])))

Nyamistaya
Автор

Well, saying you wanted to write more simple code, and then using an imported library kind of beats the point... since all those other longer sollutions probably only used the native python library. But still thanks for the great video.

העבד
Автор

how long did it take you to be so proficient at python???

cardinalraven
Автор

good video
you made this rly easier x)

AppleminiJast
Автор

Lol I saw an 8 minute video... and yours is 10!!!!

kevinm
Автор

Would you say using collections array / list performs better then a list itself?

marcd
Автор

i wanna do this in c or c# or c++ can u help me with this

RavinduThimal
Автор

Is it possible to add ascii table symbols to this?

samcruz
Автор

Alphabet is an invalid syntax on my computer, please help me.

crawforddavid
Автор

Mine sais that "module" has no attribute "maketrans"

herooyyy
Автор

what is that logic book thing you mentioned in the beginning o the video?

oakeydokey
Автор

other than tailoring some of the code to Python 3, great video

brianahrens
Автор

in line 25 after our_string what is that small thing i seem to no be able to find it on my com

eoyzyc
Автор

line 23 - I am having problems with the [maktrans] part, it flags up errors for me, can anyone offer help? i will paste the code somewhere if requested but I wrote it exactly as it was show though.

raserapps
Автор

hi can you please write the whole code without importing

RZ-xdvc
Автор

not getting any output printed


import string
import collections

def caeser(rotate_string, number_to_rotate_by):

upper =
lower =




upper=''.join(list(upper))
lower=''.join(list(lower))

return rotate_string.translate(str.maketrans(str.ascii_uppercase, upper)).translate(str.maketrans(str.ascii_lowercase, lower))

our_string = "hello world"
for i in
print (caeser(our_string, i))

khizerkamran
visit shbcf.ru