Source Code:
(back to article)
x = "hello" if isinstance(x, str): print("x is a string") else: print("x is not a string")
Result:
Report an issue