fork(1) download
  1. text = "abc\nxyz"
  2.  
  3. print("\n" in text)
  4.  
  5. bytes_text = b"abc\nxyz"
  6.  
  7. print(b"\n" in bytes_text)
  8.  
  9. print("\n" in bytes_text)
  10.  
Runtime error #stdin #stdout #stderr 0.1s 10088KB
stdin
Standard input is empty
stdout
True
True
stderr
Traceback (most recent call last):
  File "./prog.py", line 9, in <module>
TypeError: Type str doesn't support the buffer API