Advertisement
El3ctr0G33k

Multiplication table

Oct 27th, 2014
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. x = int(raw_input("Please provide a number"))
  2. q = 1
  3. table = []
  4. while q <= x:
  5. numlist = []
  6. for y in range(1,x+1):
  7. numlist.append(y)
  8. multinumlist = [q * x for x in numlist]
  9. table.append(multinumlist)
  10. q +=1
  11.  
  12. for row in table:
  13. print row
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement