eval
PYL-W0123 5 while True:
6 try:
7 string = input("> ")
8 print(eval(string)) 9 except (KeyboardInterrupt, EOFError):
10 print()
11 exit()
Use of possibly insecure function - consider using safer ast.literal_eval
. Read more on why should eval
be avoided here.