+ 1
How can we print number 1 to N without the use of looping and recussion in python 3
no use of looping and recussion and no silly answers. plz
2 Answers
+ 5
Write 2 functions that call eachother, passing the number + 1 as arguments until n is reached.
Basically a hand up version of recursion without recursion.
+ 1
#To print N numbers without loop..
#Not exactly.. but near one..
MyList = list(range(n+1))
print (MyList)