# Newbie warning
I am making a timeline program. It is fairly simple.
I base it on appending lists to a list.
Ex.
[[year1, "headline1", "event text1"], [year2, "headline2", "event text2"]]
This seemed like a brilliant idea when I did it. It is easy to sort.
Now, if I want to OUTPUT it, how do I in
> You could do the folowing with range:
>
> for f in range(4,0,-1)
> print f
>
> This should give you the wanted result. You start from 4 and range to 0
> (not
> included), by sustracting 1 each time.
>
> Cheers,
> Bas.
Thank you, Bastien and Kent.
Had tried:
for f in range(4,0):
print f
-
# Newbie warning
I am playing with Python. Playing as in learning.
Is it possible to reverse a range sequence? If, for instance, I call:
for f in range( 1,5 ):
print f
- I get:
1
2
3
4
Is it possible to reverse it? As in:
4
3
2
1
Yours,
Morten
__