[Solved] Why can’t I return the modified str_func function back to the main function?

[ad_1]

test="qwertyuiopasdfghjklzxcvbnm"

def changestring(string):
    for x in 'aeiou':
        string = string.replace(x, '*')
    return string

changestring(test)
'qw*rty***p*sdfghjklzxcvbnm'

Is this what you are trying to do?

5

[ad_2]

solved Why can’t I return the modified str_func function back to the main function?