Exercises on Python (online class)

Exercise 1

Caesar decrypt: decrypt a given ciphertext encrypted with Caesar.

Example

ciphertext:

plaintext:

Exercise 2

Frequency analysis: print the list of pairs (character, number of occurrences) found in a given string, sorted by the number of occurrences.

Exercise 3

Reverse word order: print the words found in a given string in reverse order

Example: