1

Can anyone tell me the output of the following program. I tried to Do it but it isn't working. Here is the code

for i in range(2,1):
    print(i)
Brian Destura
  • 11,487
  • 3
  • 18
  • 34
Aditya R.
  • 11
  • 1
  • you are saying go from 2 to 1 while adding 1 each time ... how many 1's must be added to 2 to reach 1? (maybe you want `range(2,1,-1)` )... maybe – Joran Beasley Jul 20 '21 at 04:56
  • 3
    I guess it is working but you are not able to accept the result. – Klaus D. Jul 20 '21 at 04:56
  • 2
    "It isn't working" is the most useless description for your problem. Tell us what you're expecting and how it's not. – iBug Jul 20 '21 at 04:59

0 Answers0