2. Crypto

Data file: message.txt
This is the text file
you are modifying
so that all vowels
are changed to "*".

Read the file "message.txt" and write the file "crypto.txt" which should have the same text as the first file, but with vowels replaced by "*".

System Message: ERROR/3 (/home/runner/work/PyZombis/PyZombis/_sources/lectures/TWP23/TWP23_2_en.rst, line 41)

Duplicate ID – see lectures/TWP23/TWP23_2, line 45

.. datafile:: crypto.txt
    :cols: 20
    :rows: 10
    :edit:

2.1. Exercise

As you can see, the previous code did not change some vowels in the file "message.txt". This is due to capital letters or accents. Your task is to modify the previous program so that it changes ALL vowels to "*". Remember: the .lower() method returns a string with all its characters turned into lowercase letters. This time, you will write to the file "crypto2.txt".

System Message: ERROR/3 (/home/runner/work/PyZombis/PyZombis/_sources/lectures/TWP23/TWP23_2_en.rst, line 98)

Duplicate ID – see lectures/TWP23/TWP23_2, line 99

.. datafile:: crypto2.txt
    :cols: 20
    :rows: 10
    :edit:
You have attempted of activities on this page