Advertisement
Guest User

Untitled

a guest
Aug 20th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. quest = ['7', '8', '7', '7', '8', '3']
  2. ops = '+-*/'
  3. for i in ops:
  4.     for j in ops:
  5.         for k in ops:
  6.             for l in ops:
  7.                 for m in ops:
  8.                     res = eval(quest[0]+i+quest[1]+j+quest[2]+k+quest[3]+l+quest[4]+m+quest[5])
  9.                     if res == 100.0:
  10.                         print(quest[0]+i+quest[1]+j+quest[2]+k+quest[3]+l+quest[4]+m+quest[5])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement