How to fill array with any no like using zeros and ones.
i'm new to python and i can't find the answer....

I got my answer...
a=[-1]*5

ahh.. its damn easy.....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.