string python abaikan karakter
text = ['!kick', '/ban', '!k!ck']
for s in text:
print s[0].translate(None, '!/') + s[1:]
output:
kick
ban
k!ck
Mattia
text = ['!kick', '/ban', '!k!ck']
for s in text:
print s[0].translate(None, '!/') + s[1:]
output:
kick
ban
k!ck