Counting by 15s | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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
2 Answers
+ 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