text = "abc\nxyz" print("\n" in text) bytes_text = b"abc\nxyz" print(b"\n" in bytes_text) print("\n" in bytes_text)
Standard input is empty
True True
Traceback (most recent call last): File "./prog.py", line 9, in <module> TypeError: Type str doesn't support the buffer API