PRACTICE FROM IN-LAB TEST: Define a function named variousChanges(...) which receives one string (origst) (with letters, digits, or special characters), possibly empty, and returns a new string containing the following:
a) In those positions where the original string has an even digit, the corresponding character in the new (returned) string should have the string digit '0'.
b) In those positions where the original string has a vowel letter (upper or lower case), the new (returned) string should have the letter 'V'. Note that the vowels are: 'a', 'e', 'i', 'o', 'u'.
c) Any other position in the new (returned) string should have a star ('*').
d) At the end of the new string, there should be a number attached, which is the number of uppercase letters in the original string.
For example, variousChanges("A>e>X34S") should return the string "V*V***0*3" because:
'A' (in position 0) and 'e' (in position 2) are vowels — so the new string has a 'V' in those positions.
'4' (in position 6) is an even digit — so the new string has a '0' in that position.
All other positions have '*' in the new string.
'A', 'X', and 'S' are three uppercase letters in the original string — so the new string has a 3 at the end.
As an example, the following code fragment:
print(variousChanges("A>e>X34S"))
should produce the output:
V*V***0*3