Dne 9.5.2016 v 10:13 Chris Roy-Smith napsal(a):
Hi
Python 3.4 Linux (ubuntu)
This code does what I want.
curs is the result of a mysql query
data = [[" " for x in range(9)] for y in range(count)]
for (ddate, mood, walk, lag, sleep) in curs:
data[row][0]=ddate
data[row][1]=mood
marcus lütolf píše v St 13. 04. 2016 v 21:41 +0200:
> Hello experts
>
> I'am working exercise 5. of 'Practical Programming 2nd edition, .using
> Python 3' (operations on lists).
> The following code get's me wrong results:
>
> >>> metals = [['beryllium', 4],['magnesium', 12], ['calcium', 20