We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
"Note This function is not normally available as a built-in since the name print is recognized as the print statement. To disable the statement and use the print() function, use this future statement at the top of your module:
from__future__importprint_function
"New in version 2.6"
(Interestingly, this is now inserted in the template when you select Python 2.) Have to say that I'm a bit surprised that Python didn't offer something like sprintf.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Print Function
You are viewing a single comment's thread. Return to all comments →
From https://docs.python.org/2.7/library/functions.html?highlight=print#print"
"Note This function is not normally available as a built-in since the name print is recognized as the print statement. To disable the statement and use the print() function, use this future statement at the top of your module:
"New in version 2.6"
(Interestingly, this is now inserted in the template when you select Python 2.) Have to say that I'm a bit surprised that Python didn't offer something like sprintf.