I'm have trouble trying to convert a returned dictionary value into code.
My dictionary value returns as "(randi() % 11 + 2)"
which is a string. Is there a simple way to convert this into code? Do I have to use a regexp to remove the quotations?
I've tried int()
and it didn't work to generate a random number in the range listed above.
Thank you!