You probably want to assign the lastname
you are reading out here
lastname = sheet.cell(row=r, column=3).value
to something; currently the program just forgets it
you could do that two lines after, like so
unpaidMembers[name] = lastname, email
your program will still crash at the same place, because .items()
still won’t give you 3-tuples but rather something that has this structure: (name, (lastname, email))
good news is, python can handle this
for name, (lastname, email) in unpaidMembers.items():
etc.
Related Posts:
- Relative imports in Python 3
- What are type hints in Python 3.5?
- python 3 – x for x for loops – how do they work?
- Use Gif Logo For Loading Screen In Kivy
- How can I make a time delay in Python? [duplicate]
- Python – TypeError: ‘int’ object is not iterable
- Understanding the main method of python [duplicate]
- What is the difference between rw+ and r+
- Convert bytes to a string
- Python – TypeError: ‘int’ object is not iterable
- Relative imports – ModuleNotFoundError: No module named x
- Python: ‘ModuleNotFoundError’ when trying to import module from imported package
- How do I use raw_input in Python 3
- What does the list() function do in Python?
- Invalid character in identifier
- Is there a ‘foreach’ function in Python 3?
- Convert bytes to a string
- ModuleNotFoundError: No module named ‘requests’. But ‘requests’ already installed
- How to print like printf in Python3?
- Python Error: AttributeError: __enter__ [duplicate]
- Updating Python on Mac
- TypeError: slice indices must be integers or None or have an __index__ method
- filedialog, tkinter and opening files
- How to install xlrd in python3 library
- Error in Python script “Expected 2D array, got 1D array instead:”?
- Error in Python script “Expected 2D array, got 1D array instead:”?
- ‘python3’ is not recognized as an internal or external command, operable program or batch file
- Name ‘xrange’ is not defined in Python 3 [duplicate]
- Error: ” ‘dict’ object has no attribute ‘iteritems’ “
- How do order of operations go on Python?
- How to upgrade pip3?
- python3 : The term ‘python3’ is not recognized as the name of a cmdlet
- Install numpy on python3.3 – Install pip for python3
- Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)
- TypeError: cannot convert the series to
- builtins.TypeError: must be str, not bytes
- Pinging servers in Python
- Import error: No module name urllib2
- takes 1 positional argument but 2 were given
- ‘End of statement expected’ in pycharm
- Python 3 ImportError: No module named ‘ConfigParser’
- Why did ‘reset_index(drop=True)’ function unwantedly remove column?
- re.search().TypeError: cannot use a string pattern on a bytes-like object
- Change figure size and figure format in matplotlib
- How can I concatenate str and int objects?
- error: Failed to load the native TensorFlow runtime
- ImportError: No module named ‘encodings’
- TypeError: list indices must be integers, not float
- TypeError(“‘bool’ object is not iterable”,) when trying to return a Boolean
- PermissionError: [WinError 5] Access is denied
- Python 3: UnboundLocalError: local variable referenced before assignment
- How to delete last item in list?
- Don’t understand this SyntaxError: illegal target for annotation
- Using Queue in python
- Converting int to bytes in Python 3
- “for line in…” results in UnicodeDecodeError: ‘utf-8’ codec can’t decode byte
- SyntaxError invalid token
- How do I format a string using a dictionary in python-3.x?
- For loop and ‘numpy.float64’ object is not iterable error
- How to troubleshoot an “AttributeError: __exit__” in multiproccesing in Python?
- Print multiple arguments in Python
- TypeError: cannot unpack non-iterable NoneType object
- python mpl_toolkits installation issue
- Shebang doesn’t work with python3
- TypeError: ‘dict_keys’ object does not support indexing
- How to strip all whitespace from string
- Python Binomial Coefficient
- pythonw.exe or python.exe?
- How to convert ‘binary string’ to normal string in Python3?
- python3 TypeError: ‘function’ object is not iterable
- How can I convert a .py to .exe for Python?
- Directing print output to a .txt file
- How to read the last line of a file in Python?
- How to start from second index for for-loop
- Converting a sentence to piglatin in Python
- Python Error – TypeError: input expected at most 1 arguments, got 3 [duplicate]
- A general tree implementation?
- ModuleNotFoundError: No module named ‘seaborn’ in Python IDE
- Is there a ceiling equivalent of // operator in Python?
- TypeError: ‘set’ object does not support indexing
- Python 3: Multiply a vector by a matrix without NumPy
- How to fix “Can’t find a default Python” error
- TypeError: ‘newline’ is an invalid keyword argument for this function
- Root mean square of a function in python
- Print empty line?
- Checking to see if a string is an integer or float
- pip throws TypeError: parse() got an unexpected keyword argument ‘transport_encoding’ when trying to install new packages
- How to know/change current directory in Python shell?
- What is an easy way to implement fprintf in python?
- WinError 10061 – No Connection Could be made
- How to use cmp() in Python 3?
- Generator expression must be parenthesized if not sole argument
- Does python have header files like C/C++?
- Error: No module named ‘fcntl’
- Python can’t find file
- TypeError: got multiple values for argument
- IOError: [Errno 32] Broken pipe when piping: `prog.py | othercmd`
- Accessing dict_keys element by index in Python3
- Python webbrowser.open() to open Chrome browser
- how do I upgrade pip on Mac?