how do I create a function that randomly replaces vowels in a string with * in python
18:49 05 Oct 2022
def long_string(str):
    vow_list = ["a","e","i","o","u"]

    for v in vow_list:
        new_str = str.replace(v,"*")
        return(new_str)

long_string("Why is this code not working?")
python