Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New line in python?

Tags:

python

Want to find piece of the code, written in python, which adds a new line inside some function.

For which character I have to search? For \n ?

Thanks.

like image 226
James Avatar asked Sep 06 '25 03:09

James


1 Answers

Yes, in strings usually \n is used. However, it might be multi line string like this:

'''
Some string
with 
enters.
'''
like image 77
gruszczy Avatar answered Sep 07 '25 21:09

gruszczy