Challenge: Implementing Caesar Cipher
Завдання
Swipe to start coding
Now, we will implement a simple function that provides data encryption using Caesar cipher.
Your task is to:
- Check if the character is alphabetic inside the
forloop of thecaesar_cipher()function. Use the.isalpha()method to do it. - Set the value of the
keyvariable equal to3. - Call the
caesar_cipher()and specify the required arguments (plaintextandkey).
Note
To provide decryption, we can use the same function but with other arguments:
caesar_cipher(encrypted_text, neg_key)whereneg_key=- key.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 3. Розділ 3
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Awesome!
Completion rate improved to 5
Challenge: Implementing Caesar Cipher
Свайпніть щоб показати меню
Завдання
Swipe to start coding
Now, we will implement a simple function that provides data encryption using Caesar cipher.
Your task is to:
- Check if the character is alphabetic inside the
forloop of thecaesar_cipher()function. Use the.isalpha()method to do it. - Set the value of the
keyvariable equal to3. - Call the
caesar_cipher()and specify the required arguments (plaintextandkey).
Note
To provide decryption, we can use the same function but with other arguments:
caesar_cipher(encrypted_text, neg_key)whereneg_key=- key.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 3. Розділ 3
single