Advertisement
Guest User

evalception.py

a guest
Oct 17th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. #/usr/bin/env python
  2. import re, sys, random
  3. random = random.random()
  4. solve_me = re.sub("[^%0-9,\(\)s\.']", "", sys.stdin.readline())
  5. sys.modules = {}
  6. if eval(solve_me, {"__builtins__": {"s": eval}}) == random:
  7.     print("Solved")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement