Guest User

Untitled

a guest
Feb 29th, 2012
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.68 KB | None | 0 0
  1. Possible=()
  2. Impossible=()
  3. #Deeeeeelete - Indivisible=()
  4.  
  5. for n in range(1,100):
  6.     for c in range(0,10):
  7.         for b in range(0,10):
  8.             for a in range(0,10):
  9.                 if (6*a)+(9*b)+(20*c)==n:
  10.                     Possible +=(n,)
  11.                     break
  12.             if n in Possible:
  13.                 break
  14.         if n in Possible:
  15.             break
  16.     #Put counter conditional here, and then your else clause after it
  17.     if n in possible:
  18.         #Counter stuff
  19.     else:
  20.         #What do you think?
  21.        
  22. #These are unnecessary now
  23. for m in Impossible:
  24.     if m not in Possible:
  25.         Indivisible +=(m,)
  26.  
  27. print Possible
  28. print Impossible
  29. #No need for this variable - Indivisible[-1]
Advertisement
Add Comment
Please, Sign In to add comment