0
For num in range (0,10,-2): print (num,end=' ') .why no output for this one and for this one also for num in range (10,0,2)
1 Antwort
+ 5
The parameters of the range function are range(start, stop, step). If you step -2 from zero, you are out of the range [0; 10), hence not output.
Please do NOT put code in the title section, it gets cut off.
Please put your code in a script on sololearn playground and LINK your code.