Hapus r dan n dari string python

stocks = [x.replace("\r\n","") for x in stocks]
TheProgrammer