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.
All non-keyword arguments are converted to strings like str() does and written to the stream, separated by sep and followed by end. From printfunction doc.
So if we just give range(1, n) python3 will just print out range(1, n) since str(range(1, n)) is range(1, n).
Print Function
You are viewing a single comment's thread. Return to all comments →
All non-keyword arguments are converted to strings like str() does and written to the stream, separated by sep and followed by end. From printfunction doc.
So if we just give range(1, n) python3 will just print out range(1, n) since str(range(1, n)) is range(1, n).
Also read @JBallin's explanation below.