Note that eval() does not work well in pythonTutor, so, the code below has the eval() call replaced with float() which returns an floating point (decimal) number when given a string.
Note that eval() does not work well in pythonTutor, so, the code below has the eval() call replaced with int() which returns an integer (whole number) when given a string.
Note that eval() does not work well in pythonTutor, so, the code below has the eval() call replaced with int() which returns an integer (whole number) when given a string.