Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to import the print function from __future__ ?

I did from __future__ import print_function

print('text',end=\n)

But it shows error.

How to import the print function from __future__ ?

I did from __future__ import print_function

print('text',end=\n) print('text',end='\n')

But it shows error.