Python - Data Types as Values
What will be the output of this code?
text = 'Hello World' print(text.strip())
text = 'Hello World' print(text.strip())
strip() removes leading and trailing whitespace from a string.strip() returns the string unchanged.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions