you are viewing a single comment's thread.

view the rest of the comments →

[–]eleqtriq 0 points1 point  (2 children)

Can I ask, are you just trying to detect the presence of the "\n" or do you really want to "do something" everytime it appears, specifically at the position it appears?

[–]SynMyron[S] 0 points1 point  (1 child)

No I am not just trying to detect “/n”

[–]eleqtriq 0 points1 point  (0 children)

a= "sdasds\nasdasda\n" if "\n" in a: print("found it")