Which of the following string methods removes whitespace from both the beginning and end of a string? 1 point strip() split() wsrem() strtrunc() 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())