SHARE
TWEET

Untitled

a guest Jun 25th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def multiply(st):
  2. m = re.findall('d+', st)
  3. return eval(m)
  4. print(multiply('multiply 4 by 2'))
  5.      
  6. return eval(m)
  7. TypeError: eval() arg 1 must be a string, bytes or code object
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top