Python Tips And Tricks

Python Tips and Tricks

string = 'Hi there' # True example
#string = 'Good bye' # False example
if 'Hi' in string:
    print 'Success!'

http://www.siafoo.net/article/52

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License