72 - range

Run Settings
LanguagePython
Language Version
Run Command
#range(0,10) and range(10) are the same for number in range(0, 10): print(number) for number in range(0,10): print('email email list') # range excepts third argument which is step over: for number in range(0,10,2): # It jumps from 0 to 10 by two print(number) for number in range(2): print(number) for number in range(10,0): print(number) # That's not going to work for number in range(0,10,-1): print(number) # That's not going to work for number in range(10,0,-1): print(number) for number in range(10,0,-2): print(number) # list() allows us to convert sth to a list. Let's do sth interesting: for number in range(2): print(list(range(10))) print("----------------Divider-----------------") for number in range(10,0,-2): print(list(range(10)))
l;ad;sakas;fk;sf;l
dsfsfsfsd
Editor Settings
Theme
Key bindings
Full width
Lines