Predict the correct output of the following python code:
for i in range (10,0,-2) : '=",")' end 'print(i,'
Answers
Answered by
5
Your code is wrong ,you will have syntax error if you use this code.
The correct code should be :-
for i in range(10,0,-2): print( i , end= " ,")
If you use the the above correct code then the output would be the following printed on the console:-
10,8,6,4,2,
The exact output would be produced .
Please Mark me the breanliest.
Similar questions