Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. codes1example = [1240, 1241, 2014]
  2. variable1example = 4120
  3.  
  4. temp = map(sorted, (map(str, codes1example)))
  5. if sorted(str(variable1example)) in temp:
  6. print("Ok!")
  7. else:
  8. print("No!!!")
  9.  
  10. #-->Ok!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement