Get your
own Python
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
import re txt = "The rain in Spain" x = re.search("\s", txt) print("The first white-space character is located in position:", x.start())
The first white-space character is located in position: 3