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 txt = "hello planet" #Check if the string ends with 'planet': x = re.findall("planet$", txt) if x: print("Yes, the string ends with 'planet'") else: print("No match")
Yes, the string ends with 'planet'