Hello, I was wondering, how can I tell python program to go to next line after printing something using print()? Like, in Java, we use System.out.println() to tell it to go to next line.
You can use
\n in your string to jump to a new line, but print() will also work depending on what you’re trying to do. A couple examples that both print to lines 1 and 3:
print('line1 \n\nline3') >line1 > >line3 print('line1') print() print('line3') >line1 > >line3