range() function for num in range(2,-5,-1): print(num, end=", ")
Answers
Answered by
3
Answer:
210-1-2-3-4
Explanation:
text me for the explanation 9550026427
Answered by
2
Answer:
2,1,0,-1,-2,-3,-4,
Explanation:
Here three inputs has been given to the range function:
range(2,-5,-1)
Here range function instructed to be start from integer value 2, and goes only upto -5 but python has inbuilt property that goes only upto (n-1) given input.
At last -1 has been instructed that range function counted backwards from 2 to -5.
At last print function prints the output on the console and end=","
function prints all values in a same line by separating commas.
#SPJ3
Similar questions