Range

Run Settings
LanguagePython
Language Version
Run Command
for i in range(5,1,-1): print(i) a = [1,2,3,4,5,6] print("a",a[:-2:1]) print("______________") for j in range(5,13,2): print(j) print("____________") for k in range(5,1,-2): print(k) b = [1,2,3,4,5,6] print("b",b[1::3]) c = [1,2,3,4,5,6] print("c",c[-1:2:-1]) d = [1,2,3,4,5,6] print("d",d[5:2:-1]) e = "hello world" print(e[6:2:-1])
Editor Settings
Theme
Key bindings
Full width
Lines