0
give some explanation about line - 3:
2 Antworten
+ 2
Syntax
range(start(include) ,stop(exclude) , step)
Here for x in range(1,9,2)
m=4
In line 3
' ' print m times then * prints x times
* #first iterate output, m reduce to 3
' ' prints m(3) times now x is 1+2=3, * prints x(3) times
*** #second iterate output, m reduce to 2
' ' prints m times(2) now x is 3+2=5, * prints 5 times
***** #third iterate output m reduce to 1.
' ' prints m(1) time now x is 5+2=7, * prints 7 times.
******* #final iterate output.
0
thx vedivelan