Python question help?
How can I write a Python expression that evaluates to False
if the string stored in the variable s
begins with "ecto"?
2 Answers
not s.startswith('ecto')
is what you're searching for, or if you wrap it in a function:
def some_function(s): return not s.startswith('ecto')
Related Questions
4
How do you make a header not fade when you put a header in…?
My header always loses its color when I add it to my project, and I don’t want it to fade. How can I prevent this from h...
8
What is the HTML code to create a forum?
I am building a website and would like to include a discussion board or forum. Could someone provide the HTML code or gu...