+ 1

Counting by 15s

I’m trying to figure out how to count by numbers to a defined point. (Example: count by 15s to 360) anyone know how to set this up in python?

7th Mar 2018, 3:40 AM
Justin Amos
Justin Amos - avatar
3 Antworten
+ 5
for x in range(15, 361, 15): print(x)
7th Mar 2018, 3:51 AM
John Wells
John Wells - avatar
+ 2
Thanks guys
7th Mar 2018, 4:01 AM
Justin Amos
Justin Amos - avatar