I have a question about how to convert strings with arithmetic operations like + or * from a string to an integer.
Here is my input and the error output:
a = int('4*5')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: invalid literal for int() with base 10: '4*5'
I've expected this operation saves the number 20 as an interger in variable a.
Thanks for helping