Feb-02-2019, 07:51 PM
(Feb-02-2019, 06:58 PM)ichabod801 Wrote: Because you are using 5-i. range(5) gives 0, 1, 2, 3, 4, in that order. Five minus that is 5, 4, 3, 2, 1. So your list is [range(1, 5), range(1, 4), range(1, 3), range(1, 2), range(1, 1)]. The empty list is coming from range(1, 1).
How can i change it so the printing isn't [range(1,5)] etc but the numbers?
Query:Why simple exercises are so difgicult in their solution??