Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. @camsbury
  2. 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]
  3.  
  4. ```
  5. def count_by(x, n):
  6. while n>0:
  7. lst=[]
  8. lst.append(x+x)
  9. n=n-1
  10. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement