+ 1
how to print the without using any string method 123....n where .... represents values in between
for eg 1) if we input 3 then output should be 123 2) if we input 7 then output should be 1234567
13 Respostas
+ 4
Why we use end here please tell me about it
+ 3
n = int(input())
i=1
while i<=n:
print(i,end="")
i=i+1
+ 2
value=int(input())
for number in range(value) :
print(number+1, end="")
+ 1
n = int(input())
for i in range(1,n+1):
print(i,end="")
0
what is the use of end here please tell me
0
ok thankuh for the help ..đ
0
print(*range(1, int(input()) + 1), sep="")
0
print(*range(1, int(input()), sep='')
0
n = int(raw_input())
for i in range(1,n+1):
print(i,end="")
0
N=int(input())
for i in range(1,N+1):
print(i, sep ='')
0
for i in range(1,n+1):
print(i, end=' ',sep=' ')
0
end is used to kinda connect the second line to it and make it as a string. for new line we use /n and to connect the next end. https://www.geeksforgeeks.org/gfact-50-JUMP_LINK__&&__python__&&__JUMP_LINK-end-parameter-in-print/
0
n = int(input())
for i in range(1,n+1,1):
print(i,end="")