@shafnashafna1601 range(0,n+1,1) and range(n+1). Both are logically correct. It's not the issue. Provide indentation for statements inside the for loop. Leave some space and write print statement. Other than this, program seems to be fine. If you were asked to print first n whole numbers, you can use range(n)
Distance =int veche read cheythal 58 ayate kitto? Per kilometre parayumbo nammal decimal ayate edukano distance?
Sir n whole numbers print cheyyunath okke simple ayiii
n=int(input ("enter the limit:"))
For x in range (0,n+1,1):
print(x)
Ingane cheythudeee🙌🏻
Good Try! There is a logical error in this program written by Shafna. Can anyone spot the errors ?
@@techtalkz4656
yes sir
range already started from zero and incremented by one so don't specify that .
Only range(n+1) .
isn't this logical error??
@shafnashafna1601 range(0,n+1,1) and range(n+1). Both are logically correct. It's not the issue. Provide indentation for statements inside the for loop. Leave some space and write print statement. Other than this, program seems to be fine. If you were asked to print first n whole numbers, you can use range(n)
Thanks ❤
Thanks ❤
Thank you sir❤