[GO] python> does not include the letters mm> if "mm" not in text: / print "not including mm"

I want to judge that python does not include the character string "mm"

http://stackoverflow.com/questions/3437059/does-python-have-a-string-contains-substring-method

http://ideone.com/yCVsHS

test.py


text = "hello"

print text

if "ll" in text:
	print "including ll"
	
if "mm" not in text:
	print "not including mm"

result


Success	time: 0.03 memory: 44680 signal:0
hello
including ll
not including mm

Recommended Posts

python> does not include the letters mm> if "mm" not in text: / print "not including mm"
Python> Python does not include the last offset
What to do if Python does not switch from the System version in pyenv
Check if the URL exists in Python
Python / dictionary> setdefault ()> Add if not in dictionary
Print the include header path in clang
[Learning memo] Create if the directory does not exist / Get the files in the directory
Check if the characters are similar in Python
Examples and solutions that the Python version specified in pyenv does not run
Patch when full text search does not work in GAE / Python local environment
[Python] Change the text color and background color of a specific keyword in print output
What to do if the print command itself causes an error in Maya python
What to do if the progress bar is not displayed in tqdm of python
[Python] Precautions when it does not work even if TimedRotatingFileHandler is set in basicConfig in python2
Check if the string is a number in python
Key input that does not wait for key input in Python
Write letters in the card illustration with OpenCV python
Not being aware of the contents of the data in python
Python OpenCV tried to display the image in text.
What does the last () in a function mean in Python?
Text processing in Python
Programmer disqualification problem 5 in Python if not solved in 1 hour (repost)
Test.py is not reflected on the web server in Python3.
[python] How to check if the Key exists in the dictionary
The story that `while queue` did not work in python
Display numbers and letters assigned to variables in python print
UTF8 text processing in python
Download the file in Python
Find the difference in Python
Python version does not switch
Speech to speech in python [text to speech]
Check if the password hash generated by PHP matches in Python
New Python grammar and features not mentioned in the introductory book
Delete a particular character in Python if it is the last
The story that 2D list replacement did not work in python
Calling time.sleep () after the print function with the argument end does not print
[Python] Do not put Japanese in the path used by OpenCV
Even if you cancel or delete the job in the queue, the process running on the worker does not stop.
An error that does not work as expected when calling the tkinter module in a text editor
Even if you cancel or delete the job in the queue, the process running on the worker does not stop (2)