We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Re.start() & Re.end()
Re.start() & Re.end()
Sort by
recency
|
335 Discussions
|
Please Login in order to post a comment
Here's my code:
without using regex
Python 3 solution using only the exercise material, without any extra knowledge of re package.
import re
S = input() k = input()
i = 0
while i < len(S) - 1: