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.
Thes was my solution also! :D Just use the end="" so the next print will not start on the next line and it will remain on the same line. That because by default for print( something, end='\n').
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 →
Thes was my solution also! :D Just use the end="" so the next print will not start on the next line and it will remain on the same line. That because by default for print( something, end='\n').