what values are generated when the fuction range (6,0,-2) is executed
Answers
Answered by
2
Answer:
for i in range(6,0,-2):
print(i)
>> 6
>> 4
>> 2
Explanation:
1. First value represents start value(6)
2. Second value represents stop value(0)
3. Third value represents step value(-2)
[6,4,2] values are generated
tharunjashu:
thank you
Similar questions