Python homework-0#1
Conversation
| for X in range(1, s.nrows): | ||
| learner = s.row_values(X) | ||
| print(learner) | ||
| average=sum(learner) |
There was a problem hiding this comment.
"learner" contains text data at position [1], so the sum should be impossible. Another name for the function is needed.
There was a problem hiding this comment.
We've redefined sum at line 17 so I'm not sure, that there will be some problems here. Have you tried to run the code?
There was a problem hiding this comment.
Well, the code works, but I thought, that's not what we are talking about here...
| a = xlrd.open_workbook("БИОЛОГИ_ таблица успеваемости осень 2018.xlsx") | ||
| debug = 1 | ||
|
|
||
| for s in a.sheets(): |
There was a problem hiding this comment.
what is a.sheets()? I just don't get it..
There was a problem hiding this comment.
You can try to get it from xlrd package documentation / API reference.
agbragin
left a comment
There was a problem hiding this comment.
Please, answer the comments.
| for X in range(1, s.nrows): | ||
| learner = s.row_values(X) | ||
| print(learner) | ||
| average=sum(learner) |
There was a problem hiding this comment.
We've redefined sum at line 17 so I'm not sure, that there will be some problems here. Have you tried to run the code?
| a = xlrd.open_workbook("БИОЛОГИ_ таблица успеваемости осень 2018.xlsx") | ||
| debug = 1 | ||
|
|
||
| for s in a.sheets(): |
There was a problem hiding this comment.
You can try to get it from xlrd package documentation / API reference.
agbragin
left a comment
There was a problem hiding this comment.
Task accepted. Nice work!
No description provided.