LearningPy/main.py

13 lines
176 B
Python

#String tests
a = "hello world"
b = """hello
world"""
c = 'world hello!'
d = '''world
hello!'''
e = "!"
print("!" in a)
print(e in b)
print("!" in c)
print(e in d)