Nov-27-2020, 02:05 PM
Second attempt looks fine, except that you don't define string. Not sure why you are raising that exception.
Also, please post code using the python tags. That preserves formatting.
Also, please post code using the python tags. That preserves formatting.