LearningPy/main.py

13 lines
192 B
Python
Raw Normal View History

2022-11-30 16:59:34 +00:00
#String tests
a = "hello world"
b = """hello
world"""
2022-11-30 17:03:29 +00:00
c = 'world hello!'
2022-11-30 16:59:34 +00:00
d = '''world
2022-11-30 17:03:29 +00:00
hello!'''
e = "!"
2022-11-30 17:04:13 +00:00
print("!" not in a)
print(e not in b)
print("!" not in c)
print(e not in d)