Sentdex commited on
Commit
c299966
1 Parent(s): 61af6b4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -2
README.md CHANGED
@@ -23,8 +23,7 @@ inp = """def do_something():
23
  """
24
 
25
  newlinechar = "<N>"
26
- converted = inp.replace("\
27
- ", newlinechar)
28
  print("length:", len(converted))
29
  print(converted)
30
  ```
 
23
  """
24
 
25
  newlinechar = "<N>"
26
+ converted = inp.replace("\\n", newlinechar)
 
27
  print("length:", len(converted))
28
  print(converted)
29
  ```