This is one full question. Please write in Python.
1. (4 points) Within a file named ciphers.py, write a function cleanup_text (original) that returns a "cleaned up” version of the original text. Specifically, the cleaned up version should capitalize all letters, and it should omit all non-letter characters outside of A-Z. If the original text contains no letters, the function should return the empty string. Do not call any built-in Python functions except upper() in your solution. Here are some example arguments for this function and their expected return values: C Argument 'EASY' still e as y' 'slotH' **..slotHs A.. Re n111cE!!!11!!!! '1234567890' Return Value 'EASY' 'STILLEASY' 'SLOTH' SLOTHSARENICE' C ( 1
This is one full question. Please write in Python.
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am