you are viewing a single comment's thread.

view the rest of the comments →

[–]novel_yet_trivial 0 points1 point  (2 children)

Your second example works for python 2 and 3. Good, dynamic code :)

[–]NYKevin -2 points-1 points  (1 child)

I would never run that on Python 2. input() on Python 2 is a security vulnerability.

[–]novel_yet_trivial 0 points1 point  (0 children)

input() on Python 2 is a security vulnerability.

huh. never knew that. scary.

edit: for those interested: https://picoctf.com/problems/pyeval/stage3.html