468,291 Members | 1,598 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,291 developers. It's quick & easy.

Writing a list in reverse in python

Hi I am doing an assignment for m programming class but I can not figure out what to do after this...

a = [1,2,3,4]

for i in range(len(a))
print (a[(i+1)*-1])
Oct 15 '18 #1
0 948

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by manuel | last post: by
11 posts views Thread by Laszlo Zsolt Nagy | last post: by
8 posts views Thread by jerry.levan | last post: by
19 posts views Thread by Dongsheng Ruan | last post: by
9 posts views Thread by Mark Bryan Yu | last post: by
3 posts views Thread by Kinokunya | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.