remover espaços string python
string = " ***** "
print(string.lstrip());
# Saída: '***** '
print(string.rstrip());
# Saída: ' *****'
print(string.strip());
# Saída: '*****'
Are there any code examples left?
New code examples in category Python