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