Datasets:

Modalities:
Text
Formats:
text
Size:
< 1K
Libraries:
Datasets
License:
PyRs2 / python /pattern_matching.py
khulnasoft's picture
Upload folder using huggingface_hub
998b6cc verified
raw
history blame contribute delete
250 Bytes
def describe(x):
if x == 1:
print("one")
elif x == 2:
print("two")
elif isinstance(x, str):
print("a string")
else:
print("something else")
describe(1)
describe(2)
describe("hello")
describe([1, 2, 3])