>>> myjob = "hacker"
>>> for c in myjob: print(c, end=' ') ...
ha c k e r
>>> "k" in myjob
True
>>> "z" in myjob
False
>>> 'spam' in 'abcspamdef' True
# Step through items, print each (3.X form)
# Found
# Not found
# Substring search, no position returned
String in Action - Python
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.