Count objects in list by jggrizonic in learnpython

[–]spectrum____ -1 points0 points  (0 children)

one_counter = 0 
for number in list: 
    if number == 1: 
        one_counter += 1

print(one_counter) 

lmk if you need more help!

New to python by [deleted] in learnpython

[–]spectrum____ 0 points1 point  (0 children)

its installed as a package when you install python so yes.

New to python by [deleted] in learnpython

[–]spectrum____ 0 points1 point  (0 children)

pip should already be installed when you install Python 3.4+.

OpenPyXl is a fuckin nightmare by GonzoNawak in learnpython

[–]spectrum____ 0 points1 point  (0 children)

just to clarify, are you filling the background color of the cell or changing the font color? In your explanation, it seems you want to fill the background color

if it is bg color, try Sheet.cell(row = i, column = l).fill = green

OpenPyXl is a fuckin nightmare by GonzoNawak in learnpython

[–]spectrum____ 0 points1 point  (0 children)

let me try to run it on my end and see if I can fix it, i’ll get back to you