Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest = ['7', '8', '7', '7', '8', '3']
- ops = '+-*/'
- for i in ops:
- for j in ops:
- for k in ops:
- for l in ops:
- for m in ops:
- res = eval(quest[0]+i+quest[1]+j+quest[2]+k+quest[3]+l+quest[4]+m+quest[5])
- if res == 100.0:
- 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