Just do some debug to understand what is myEmailInfo
: it could be a tuple (as it is printed like one) or an object with a string representation being a tuple (i.e. method __str__
returns a tuple).
To help you perform debug, I personally recommend some software like:
- PyCharm (https://www.jetbrains.com/pycharm), which has a free “Community Edition”
- Visual Code (https://code.visualstudio.com) which is a free tool from Microsoft with a great community and amazing support of Python
They both include some easy-to-use debuggers and amazing code completion for Python.
That does not answer the question (because we cannot without knowing more about your code), but that will help find the issue.
1
solved Issue with Python .format()