Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @camsbury
- I'm having trouble figuring out how to count by a certain number- the formula is (x,y) where for y numbers you count by x, aka (2,5) would return [2,4,6,8,10]
- ```
- def count_by(x, n):
- while n>0:
- lst=[]
- lst.append(x+x)
- n=n-1
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement