a guest Jul 22nd, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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]
  4. ```
  5. def count_by(x, n):
  6.   while n>0:
  7.     lst=[]
  8.     lst.append(x+x)
  9.     n=n-1
  10. ```
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand