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.
The comma(,) after i supresses the new line and the end is the delimiter that will be used while printing (can be replaced with space for printing numbers with a single space between)
Print Function
You are viewing a single comment's thread. Return to all comments →
How about this approach? It passes all the test cases.
The comma(,) after i supresses the new line and the end is the delimiter that will be used while printing (can be replaced with space for printing numbers with a single space between)
Source: https://docs.python.org/3/whatsnew/3.0.html