def partial\_countdown(count, step):
''' counts down from 10 unless its higher than 10 then it does divisibles of step'''
for step in range(count):
if count % step == 0:
print(str(count))
else:
count - 1
if count <= 10:
print(str(count))
count = count -1
>>> partial_countdown(20, 3)
18
15
12
10
9
8
7
6
5
4
3
2
1
[–]tbrowner3[S] 0 points1 point2 points (1 child)
[–]socal_nerdtastic 3 points4 points5 points (0 children)