pastebin

Paste Search Dynamic
Recent pastes
num
  1. def num(n):
  2.         if '2' in n and '3' in n:
  3.                 return ord(n)
  4.         if '2' in n and '3' in n:
  5.                 return ord(n)
  6.         if '2' in n and '3' in n:
  7.                 return ord(n)
  8.         else:
  9.                 return 0
  10.  
  11. s = 0
  12. for i in range(1,20+1):
  13.         s = s + num(str(i))
  14. print(s)
Parsed in 0.004 seconds