Run ❯
Get your
own Python
server
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Go to Spaces
Ctrl+Alt+P
import re #Replace the first two occurrences of a white-space character with the digit 9: txt = "The rain in Spain" x = re.sub("\s", "9", txt, 2) print(x)
The9rain9in Spain