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