4 lines
136 B
Python
4 lines
136 B
Python
import re
|
|
text1 = ' Python Exercises '
|
|
print("Original string:",text1)
|
|
print("Without extra spaces:",re.sub(r'\s+', '',text1)) |