Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. s = 'geometry'
  2.  
  3. m = []
  4.  
  5. for c1 in s:
  6. for c2 in s:
  7. for c3 in s:
  8. for c4 in s:
  9. m.append(c1 + c2 + c3 + c4)
  10.  
  11. filt = [eve for eve in m if eve.find('e') != -1]
  12.  
  13. print(len(filt))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement