'm fetching some data from MySQL database using:
cur.execute("SELECT memory FROM vm WHERE hv_id=5")
for row in cur.fetchall() :
print row[0]
This prints something like this:
512
1024
4096
4096
2048
4096
1024
6144
1024
1024
4096
I need sum the above and set it as a variable for further calculations.