How to use it? I have tried to run the code found as solution on codewars:
but I get error:
TypeError: translate() takes exactly one argument (2 given)
In documentation I have found it takes argument table
which is mapping
or sequence
. (what is it?!)
To create it I can use maketrans()
but how to put None there when as second argument it needs string with equal length?
tabl = string.maketrans("aeiouAEIOU", " ")
string = string.translate(tabl)
I programme in Java and R and I must admit that python is very messy language.