trim white spaces at the end of a string code example
Example: Which method in an be used to remove any whitespace from both the beginning and the end of a string?
str = "hello "
print(str.trim())
str = "hello "
print(str.trim())