Quick actions

cmd+k|ctrl+k

Navigation

Languages

list reverse counting (3-12-2024)

Snippet info

Language

Python

Visibility

public

Author

chausage

Created

2024-12-03T08:18:44.19738Z

Updated

2024-12-03T08:21:05.767771Z

lst=[1,2,3,4,5] #seq: [-5,-4,-3,-2,-1]
l1=lst[-2:-4:-1]# [start:end-1:step]
print(l1)
INFO