Answer the question
In order to leave comments, you need to log in
How to organize string trimming by finding a tag?
Hello World. I am writing a Flask blog for myself and the cut functionality has become necessary to shorten posts on the main page.
The task is purely Pythonic and it is as follows: Take a string from a variable and find the cut tag in it, if it is present, then cut it and the text after.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question