You are viewing a single comment's thread. Return to all comments →
fantastic explaination... for any new comer that needs more clarity make sure you know that you need to use n instead of int(input())
like this print(*range(1,n+1),sep='')
now as Explained by JBallen the range now is 1 to n+1 arrguments passed to the print function and the seperator is no space
Happy coding! :)
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 →
fantastic explaination... for any new comer that needs more clarity make sure you know that you need to use n instead of int(input())
like this print(*range(1,n+1),sep='')
now as Explained by JBallen the range now is 1 to n+1 arrguments passed to the print function and the seperator is no space
Happy coding! :)