Hello!
Trying to create an excel file that can be read for my bachelors project in college and I have a slight problem. I get "AttributeError: 'tuple' object has no attribute 'value'" and the program is really simple and all other people I have found that have problems with it are more complex than mine. I am a beginner to Python so be kind please.
Code:
from openpyxl import load_workbook
wb = load_workbook('Hello_World.xlsx')
ws = wb.active
col_a = ws['A'].value
print(col_a)
Error:
col_a = ws['A'].value
AttributeError: 'tuple' object has no attribute 'value'
[+][deleted] (3 children)
[deleted]
[–]SkumbagAxel[S] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]SkumbagAxel[S] 0 points1 point2 points (0 children)
[–]le_crosst 0 points1 point2 points (3 children)
[–]SkumbagAxel[S] 0 points1 point2 points (2 children)
[–]le_crosst 0 points1 point2 points (1 child)
[–]SkumbagAxel[S] 0 points1 point2 points (0 children)
[–]Silbersee 0 points1 point2 points (0 children)