On 11/25/2014 04:34 AM, Thuruv V wrote:
Please Clarify the 'TypeError: zip argument #1 must support iteration'
import openpyxl
book = openpyxl.load_workbook('c:/users/c_thv/desktop/tax.xlsx')
sheet = book.get_sheet_by_name('Thilip')
cell = sheet.cell(row=2,column = 4)
i = 2
x = []
y = []while
In Thuruv V
writes:
> Please Clarify the 'TypeError: zip argument #1 must support iteration'
> import openpyxl
> book = openpyxl.load_workbook('c:/users/c_thv/desktop/tax.xlsx')
> sheet = book.get_sheet_by_name('Thilip')
> cell = sheet.cell(row=2,column = 4)
> i = 2
> x = []
> y = []while i
Thuruv V wrote:
> Please Clarify the 'TypeError: zip argument #1 must support iteration'
Try it at the interactive interpreter:
py> zip('abc', [1, 2, 3]) # works fine
[('a', 1), ('b', 2), ('c', 3)]
But:
py> zip(1000, [1, 2, 3]) # fails
Traceback (most recent call last):
File "", line 1, i
Please Clarify the 'TypeError: zip argument #1 must support iteration'
import openpyxl
book = openpyxl.load_workbook('c:/users/c_thv/desktop/tax.xlsx')
sheet = book.get_sheet_by_name('Thilip')
cell = sheet.cell(row=2,column = 4)
i = 2
x = []
y = []while i < 10:
keys = sheet.cell(row=i,column
From: Vaduvoiu Tiberiu
> Well, to quote firefox: this is embarrassing. I've realized the dictionary
initialization is wrong, as [] means its a tuple, I should use {}. That's why I
> don't like working nights..it's only in the morning when you start seeing
things better. I apologize for the ma
for the mail. Cheers
From: Vaduvoiu Tiberiu
To: python-list@python.org
Sent: Fri, January 28, 2011 9:34:57 AM
Subject: dictionary error: list assignment index out of range
Hy everyone, I'm trying to learng python for a week or two and there's a thing
that is re
Hy everyone, I'm trying to learng python for a week or two and there's a thing
that is really disturbing me as I do not understand what the problem is. I'm
trying to use a dictionary to remember when a user has visited a city. Code is
really basic:
in the class init method I added
self.visited