hdarwin

cstutoringcenter.com_Lojban I

Jan 2nd, 2013
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. dic = {1:"pa", 4:"vo", 7:"ze",
  2. 2:"re", 5:"mu", 8:"bi", 0:"no",
  3. 3:"ci", 6:"xa", 9:"so"}
  4. l = list()
  5. sum = 0
  6. for x in xrange(1,10001):
  7.     for y in list(str(x)):
  8.         if 'o' in dic[int(y)]:sum += 1
  9. for x in str(sum):
  10.     print dic[int(x)],
Advertisement
Add Comment
Please, Sign In to add comment