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.
and also a return type is different from xrange() and range().
range()-This returns a range object (a type of iterable).
xrange()-This function returns the generator object that can be used to display numbers only by looping.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
String Formatting
You are viewing a single comment's thread. Return to all comments →
and also a return type is different from xrange() and range(). range()-This returns a range object (a type of iterable). xrange()-This function returns the generator object that can be used to display numbers only by looping.