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.
That's correct, it unpacks the list so that they are multiple arguments (which print_function from future in py2 (or just print in py3) accepts) to print the range in succession instead of just printing a list.
I explained it in depth, above, in a couple different comments.
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 →
That's correct, it unpacks the list so that they are multiple arguments (which
print_function
fromfuture
in py2 (or justprint
in py3) accepts) to print the range in succession instead of just printing alist
.I explained it in depth, above, in a couple different comments.